Wicket 1.5.3 Quickstart + JQWicket Quickstart (0.8) doesn't work?

345 views
Skip to first unread message

Rene

unread,
Jan 11, 2012, 9:09:13 AM1/11/12
to jqwicket-user
When I try the accordion-behavior, I get:

Unexpected RuntimeException

Last cause: url cannot be empty or null
WicketMessage: Exception in rendering component: [HtmlHeaderContainer
[Component id = _header_0]]

Stacktrace

Root cause:

java.lang.IllegalArgumentException: url cannot be empty or null
at
com.google.code.jqwicket.JQContributionRenderer.determineResourcesUrl(JQContributionRenderer.java:
180)
at
com.google.code.jqwicket.JQContributionRenderer.renderJsResourcesUrls(JQContributionRenderer.java:
152)

I've tried several simple examples, like Button and DatePicker, no
luck. If I disable the jqwicket code in HomePage.java and
HomePage.html, I just get my Wicket Success page, no complaints about
the jqwicket init (I've tried both ways).

max

unread,
Jan 13, 2012, 3:39:22 AM1/13/12
to jqwick...@googlegroups.com
Hi Rene,

did you configured JQComponentOnBeforeRenderListener within your application's #init() method?

Rene

unread,
Jan 13, 2012, 4:57:40 AM1/13/12
to jqwicket-user
Hi Max,

Yes, I tried both:
getComponentPreOnBeforeRenderListeners().add(new
JQComponentOnBeforeRenderListener());
and
getComponentPreOnBeforeRenderListeners().add(new
JQComponentOnBeforeRenderListener(config));

Maybe someone could try it? Only takes 5 minutes or so, just a clean
quickstart.

max

unread,
Jan 13, 2012, 5:15:04 AM1/13/12
to jqwick...@googlegroups.com
Attach your quickstart app, i'll try it.

max

unread,
Jan 13, 2012, 8:30:48 AM1/13/12
to jqwick...@googlegroups.com
Accordion-Behavior uses JQueryUI, that is not added per default to the generated output. You have to configure it explicitly like with:

getComponentPreOnBeforeRenderListeners().add(new JQComponentOnBeforeRenderListener(new JQContributionConfig().withDefaultJQueryUi()));

Agreed, the exception thrown doesn't really describes the original problem. Will be enhanced.. :)

Sobik

unread,
Jan 24, 2012, 4:46:44 AM1/24/12
to jqwicket-user
Hi, I've found a solution by looking at sources - use
withDefaultJQueryUi()

JQContributionConfig config = new
JQContributionConfig().withDefaultJQueryUi();
getComponentPreOnBeforeRenderListeners().add(new
JQComponentOnBeforeRenderListener(config));
Reply all
Reply to author
Forward
0 new messages