...
To get you started, I'll give the important configuration (and portal runtime) settings/requirements inline here.
These will eventually end up tidied up, but for the moment, this is it...
PortletResourceURLFactory
First of all, you need to make sure the portal (e.g. Liferay ) provides an implementation of the Apache Portals Bridges PortletResourceURLFactory
interface, see:
PortletResourceURLFactory
...
Jetspeed 2 does, and AFAIK, most other portals do as well, you just need to find out how to map this for Liferay and provide
(or use) their proprietary api to handle it.
ServletContextProvider
Secondly, you need also to provide an implementation of the Apache Portals Bridges ServletContextProvider
interface, see:
ServletContextProvider
...
BTW: this inteface also won't be needed anymore for proper JSR-286 containers. Once they are available I'll upgrade the Wicket
Portlet support to really work out-of-the-box and portal specific configurations won't be needed then.
Wicket
The implementations of these two interfaces need to be provided to the WicketPortlet.
There are three ways of doing that, the simplest is providing a WicketPortlet.properties
file in the classpath under package org.apache.wicket.protocol.http.portlet
.
...
Note: this requires at least a Servlet 2.4 descriptor just as in the wicket-examples application.
Portlet.xml
Finally, in your portlet.xml
, you need to define a portlet init-param named "wicketFilterPath"
with as value the url-pattern of your wicket application, but without the trailing /*
, e.g.:
...