wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Jquery methods issue with wicket 6.13
Date Wed, 18 Feb 2015 14:19:47 GMT
On Wed, Feb 18, 2015 at 4:00 PM, avchavan <avinash.chavan@yahoo.co.in>
wrote:

> Hi Martin,
>
> Did the changes as you had said.
>
> getting the following error:
> TypeError: $(...).accordion is not a function
>

Good. jQuery is loaded.


> $('#accordion').accordion();
>

Now jQuery-UI seems to be not loaded for some reason.


>
> @Override
>         public void renderHead(IHeaderResponse response) {
>           // add jQuery library
>
> response.render(CssHeaderItem.forUrl("
> https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css"));
>
> response.render(JavaScriptHeaderItem.forUrl("
> https://code.jquery.com/jquery-1.11.2.js"));
>
> response.render(JavaScriptHeaderItem.forUrl("
> https://code.jquery.com/ui/1.11.3/jquery-ui.js"));
>
>
> response.render(OnDomReadyHeaderItem.forScript("$('#accordion').accordion()"));
>         }
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Jquery-methods-issue-with-wicket-6-13-tp4669599p4669609.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message