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.