jqwicket and custom locale mappers in the wicket's Application class

12 views
Skip to first unread message

jtoru

unread,
Oct 26, 2011, 9:14:42 PM10/26/11
to jqwicket-user
I am trying to use jqwicket (0.7) and added
JQComponentOnBeforeRenderListener to my wicket (1.5.1) application's
#init() method as described. But it does not work. Because I also
added my custom mappers based on wicket sample's Custom mappers.
http://wicketstuff.org/wicket/mappers/de_DE
As result, necessary javascripts will not added in html's head tag of
the WebPage.


this is my code.

@Override
protected void init() {

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

getRootRequestMapperAsCompound().add(new CustomHomeMapper());

getRootRequestMapperAsCompound().add(
new LocaleFirstMapper(new MountedMapper("/accordion",
AccordionPage.class)));
// of cource this below works.
// mountPage("accordion", AccordionPage.class);

how can I resolve this problem? Any suggestions?
Sorry for my bad english.

max

unread,
Nov 14, 2011, 8:39:34 AM11/14/11
to jqwick...@googlegroups.com
Can you attach a simple quickstart app containing this problem?
Reply all
Reply to author
Forward
0 new messages