Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Integration in general

If you want to migrate an existing JSP based application to Wicket, then there are some quirks you need to take care of.

...

  • use jsp:include to include the url to your wicket page
  • you (probably) can't use redirections, since wicket will redirect to it's own page. If so, override beforeCallComponent in your page:

    Panelunmigrated-wiki-markup

    public void beforeCallComponent(Component component, RequestListenerInterface listener) { setRedirect(false); }

  • Because you're using include/forward, the default ServletWebRequest.getPath method will return null. Therefore, you need a specially created one:

in your Application class, override newWebRequest:

...

...

here are the needed implementations:

...

...

Partial migration with wicketstuff-jee-web

If you want to migrate your application partial and stepwise you can use wicketstuff-jee-web. The advantage is that you are able to let your JSP / Servlets interact with Wicket pages.

A user guide can be found here:

https://github.com/wicketstuff/core/wiki/JEE-Web-Integration

An article and examples here:

http://java.dzone.com/articles/integrate-jspjsf-pages-wicket