Hi Thiago,

Thanks for this, I will action in my app. 

Strange though that my other app, also T5.1, doesn't get any javascript
assets included, including blackbird, even though there's several forms,
and I haven't set SymbolConstants.FORM_CLIENT_LOGIC_ENABLED to false.

Cheers Richard.


-----Original Message-----
From: Thiago H. de Paula Figueiredo <[email protected]>
Reply-to: "Tapestry users" <[email protected]>
To: Tapestry users <[email protected]>
Subject: Re: Including / excluding javascript assets [Tapestry 5.1.0.5]
Date: Mon, 11 Jan 2010 11:35:05 -0200

Em Mon, 11 Jan 2010 11:04:44 -0200, Richard Hill <[email protected]>  
escreveu:

> Hi All,

Hi!

> I have a very simple web app with a form:
>
> <form t:id="xform">
>     <input t:type="TextField" t:id="url" size="60" />
>     <input type="submit" value="Save"/>
> </form>
>
> The addition of this results in all the Tapestry-bundled javascript
> assets being included in my app (scriptaculous, prototype, blackbird
> etc).

Prototype ans Scriptaculous are added when you use some component that  
needs JavaScript. For example, they are added by the client-side  
validation support in Form when it's enabled (default). You can disable it  
by setting the SymbolConstants.FORM_CLIENT_LOGIC_ENABLED symbol to "false"  
in your AppModule.

There's no easy way to disable Blackbird yet, but this will be fixed in  
the next releases.




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to