On Wed, Feb 18, 2015 at 4:00 PM, avchavan <[email protected]>
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: [email protected]
> For additional commands, e-mail: [email protected]
>
>