On Tue, Nov 13, 2012 at 5:13 PM, saty <[email protected]> wrote:

> Thanks for responding, To use SCRIPTACULOUS js libraries:
>
> We are using in maven:
>
>      <dependency>
>         <groupId>org.wicketstuff</groupId>
>         <artifactId>wicketstuff-jslibraries</artifactId>
>         <version>1.5.8</version>
>

You better use 6.2.0 as your Wicket version.


>      </dependency>
>
> And than code like this
>   @Override
>   public void renderHead(Component component, IHeaderResponse response)
>   {
>
>
> JSLib.getHeaderContribution(VersionDescriptor.alwaysLatest(Library.SCRIPTACULOUS)).renderHead(response)
>

As I said this is not Wicket API.


>   }
>
> scriptaculous.js documentation says:
>
> By default, scriptaculous.js loads all of the other javascript files
> necessary for effects, drag-and-drop, sliders, and all of the other
> script.aculo.us features. If you don’t need all of the features, you can
> limit the additional scripts that get loaded by specifying them in a
> comma-separated list, e.g.:
>
>
>
> So my question is how in wicket i will achieve this passing =>
> ?load=effects,dragdrop
> to scriptaculous.js
>

With plain Wicket:
PageParameters params = new PageParameters();
params.set("load", "effects,dragdrop");
response.render(JavaScriptHeaderItem.forReference(new
JavaScriptResourceReference(Scriptaculous.class, "scriptaculous.js"),
params))


>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797p4653833.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to