FAQ

FAQ

This page answers the frequently asked questions for PAX-WICKET. It will be extended as questions come in via the mailing lists or IRC channel.

How can I include a CSS Resource to my PAX-WICKET Application

For adding a CSS resource to your PAX-WICKET application you can override the renderHead operation of WicketComponent and reference your CSS stylesheet as CssHeaderItem.

Adding CSS style sheet to PAX-WICKET
public class BasePage extends WebPage { @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(CssHeaderItem.forReference( new CssResourceReference(BasePage.class, "css/bootstrap.css")) ); } }

How to configure a PAX-WICKET application for deployment

If you configure your application via Spring you need to add the following context-param section to your application configuration.

Configuring Wicket for Deployment
<wicket:application id="wicketApp" applicationName="wicket" mountPoint="wicket" class="org.emmersberger.wicket.WicketApplication"> <wicket:context-param> <wicket:param-name>configuration</wicket:param-name> <wicket:param-value>deployment</wicket:param-value> </wicket:context-param> </wicket:application>

 

 

Comments