Skip to content

Wicket Auto Reloading Classes

April 24, 2008

web.xml

<filter>
<filter-name>wicket</filter-name>
<filter-class>ghost.wicket.apps.MyReloadingFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>ghost.wicket.apps.MyWebApplication</param-value>
</init-param>
</filter>

MyReloadingFilter

public class MyReloadingFilter extends ReloadingWicketFilter
{
static
{
ReloadingClassLoader.includePattern(“ghost.wicket.*”);
ReloadingClassLoader.excludePattern(“ghost.wicket.bo.*”);
ReloadingClassLoader.excludePattern(“ghost.wicket.apps.MyWebSession”);
}
}

Simply replace your wicket filter with your custom filter to enable wicket automatically reload your class files on the fly, so that you no need to restart server to update your changes to your class file.

From → Wicket

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.