How to Use Wicket With JEE6
Since JEE6 we no longer need a deployment descriptor (web.xml), so how do we declare the necessary configurations of Wicket?
Solution: Create an empty class that inherits from WicketFilter and annotated with the necessary config.
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import org.apache.wicket.protocol.http.WicketFilter;
@WebFilter(value = "/*",
initParams = { @WebInitParam(name = "applicationClassName", value = "tn.blog.dev.MyApplication")
, @WebInitParam(name="wicket.configuration", value="deployment")})
public class MyFilter extends WicketFilter{
}
Note:You can add as many prameters as you want.
(4 votes)
Tags:
Published at DZone with permission of its author, Moez Ben Rhouma.(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Ronald Miura replied on Thu, 2010/12/30 - 5:41am
Moez Ben Rhouma replied on Thu, 2010/12/30 - 9:53am
in response to: ronaldtm
Alexis MP replied on Thu, 2010/12/30 - 12:25pm
Yogendra Rampuria replied on Thu, 2010/12/30 - 11:58pm
in response to: alexismp
Slim Ouertani replied on Sat, 2011/01/01 - 5:50am