Problem with Standard WebSharper Extension

48 views
Skip to first unread message

Mario Scappaticci

unread,
Jun 28, 2011, 9:01:00 AM6/28/11
to WebSharper
Hi,
I download the latest "Extension for Formlets for YUI" (version
1.0.26)
I unzip the archive and i put all the files in the IntelliFactory
\WebSharper\2.2 directory.

I add the .dll to the references of my project and i try to include
the IntelliFactory.WebSharper.Formlet.Yui module within my application
by this way:

open IntelliFactory.WebSharper.Formlet.Yui

Anyway i'm unable to create Tabs and other controls from this
extension because i'm get the following build error:

The module/namespace 'IntelliFactory.WebSharper.Formlet.Formlet`1'
from compilation unit 'IntelliFactory.WebSharper.Formlet' did not
contain the namespace, module or type 'Formlet`1' C:\Documents and
Settings\mscappaticci\documenti\visual studio 2010\Projects
\WebSharperWebSample7\WebSharperWebSample7\WebSharperProject
\ContactForms.fs

These are the first lines of my project:

namespace WebSharperProject

open IntelliFactory.WebSharper
open IntelliFactory.WebSharper.Html
open IntelliFactory.WebSharper.Formlet
open IntelliFactory.WebSharper.Formlet.Yui

module Flow =
[<JavaScript>]
let SignupSequence =

let mytabs = Controls.Tabs....


thanks

Adam Granicz

unread,
Jun 28, 2011, 9:13:36 AM6/28/11
to websh...@googlegroups.com
Hi Mario,

You can't use a Standard (1.x) extension with WebSharper Professional
(2.x), those are compiled against WebSharper Standard (1.x).

Cheers,
Adam.

--
Adam Granicz, IntelliFactory
www.intellifactory.com

Mario Scappaticci

unread,
Jun 30, 2011, 9:28:39 AM6/30/11
to WebSharper
Sorry Adam, my stupid fault...

Now I'm using the JQueryUI Extension (in this case i have downloaded
the right version!!!)
I create a simple Autocomplete control and i successfully build the
project. But when i run the web application i get this error:
"pagelet is undefined" at row 59 of
IntelliFactory.WebSharper.Web.dll.js

Here is my simple code:

namespace WebSharperProject

open IntelliFactory.WebSharper
open IntelliFactory.WebSharper.Html
open IntelliFactory.WebSharper.Formlet
open IntelliFactory.WebSharper.Formlet.JQueryUI

module JQueryFormlet =

[<JavaScript>]
let Main = Controls.Autocomplete "" ["a";"b";"c"] |> Formlet.Map
ignore

type myApp () =
inherit Web.Control()

[<JavaScript>]
override this.Body = JQueryFormlet.Main :> _

Any semantic error?

Joel Björnson

unread,
Jul 2, 2011, 12:34:37 PM7/2/11
to websh...@googlegroups.com
Hi Mario,
Your example is correct and I was able to run it without any errors.
Are you using the latest (2.3) versions? Are you able to run code
other examples that does not contain any jQueryUI components?

Cheers,
Joel

Mario Scappaticci

unread,
Jul 4, 2011, 3:55:00 AM7/4/11
to WebSharper
Hi Joel,
I'm able to create web application using the basic WebSharper features
and other extension (like the "Extension for JQuery UI"). My only
problem is with the "Extension for formlets for JQuery UI".
I'm using WebSharper Professional 2.2 and i download the extension
(version 2.2.10) by the WebSharper Manager.

Thanks
Mario


On 2 Lug, 18:34, Joel Björnson <joel.bjorn...@gmail.com> wrote:
> Hi Mario,
> Your example is correct and I was able to run it without any errors.
> Are you using the latest (2.3) versions? Are you able to run code
> other examples that does not contain any jQueryUI components?
>
> Cheers,
> Joel
>
> On Thu, Jun 30, 2011 at 3:28 PM, Mario Scappaticci
>

Joel Björnson

unread,
Jul 4, 2011, 4:02:03 AM7/4/11
to websh...@googlegroups.com
Hi,
Yes that should be 2.2 for the latest public version. Are you able to
run any examples using formlets for jQuery UI (i.e. using other
controls such as Controls.Button)? Can you also verify that the
corresponding JS file (IntelliFactory.WebSharper.Formlet.JQueryUI.js)
is present in the Scripts folder of your web project?

Thanks,
Joel

Mario Scappaticci

unread,
Jul 4, 2011, 4:18:23 AM7/4/11
to WebSharper
No, I get always the same error with all the controls in the extension
(button, tabs, autocomplete...).
The scripts folder in my project contains this file:
IntelliFactory.WebSharper.Formlet.JQueryUI.dll.js

Mario

On 4 Lug, 10:02, Joel Björnson <joel.bjorn...@gmail.com> wrote:
> Hi,
> Yes that should be 2.2 for the latest public version. Are you able to
> run any examples using formlets for jQuery UI (i.e. using other
> controls such as Controls.Button)?  Can you also verify that the
> corresponding JS file (IntelliFactory.WebSharper.Formlet.JQueryUI.js)
> is present in the Scripts folder of your web project?
>
> Thanks,
> Joel
>
> On Mon, Jul 4, 2011 at 9:55 AM, Mario Scappaticci
>

Joel Björnson

unread,
Jul 4, 2011, 6:04:06 AM7/4/11
to websh...@googlegroups.com
Hmm, now tried with the exact same versions available from
websharper.com and i still cannot reproduce your problem. Could you
please try to clean the projects and remove the bin folders before
building again. Alternatively you can also try with a new project.

Joel

Reply all
Reply to author
Forward
0 new messages