Hi,

wicket portlet support released under wicket stuff 1.5.7 (or any earlier
version) is probably broken, as I have submitted the changes to github too
late. It is better to use wicket-portlet-1.5.7.2.zip from jira 4019
(https://issues.apache.org/jira/browse/WICKET-4019), that was tested with
liferay 6.0.5 and wicket 1.5.7, but you can try it with other versions too.

I dont have any functional example for you, but (from the top of my head)
these are basic settings you need:

in  portlet.xml:

        <portlet>
                <portlet-name>PortalPrototype</portlet-name>
                <display-name>Portal - prototype</display-name>
                
<portlet-class>org.apache.wicket.portlet.WicketPortlet</portlet-class>
                <init-param>
                        <name>wicketFilterPath</name>
                        <value>/PortalPrototype</value>
                </init-param>
                <supports>
                        <mime-type>text/html</mime-type>
                        <portlet-mode>VIEW</portlet-mode>
                </supports>
                <portlet-info>
                        <title>Portal - prototype</title>
                        <short-title>PortalPrototype</short-title>
                        <keywords>Portal prototype</keywords>
                </portlet-info>
        </portlet>

in web.xml:

        <filter>
                <filter-name>PortalPrototypeFilter</filter-name>
                
<filter-class>org.apache.wicket.portlet.PortletFilter</filter-class>
                <init-param>
                        <param-name>applicationClassName</param-name>
                        
<param-value>sk.portal.prototyp.PortalPrototypeApplication</param-value>
                </init-param>
                <init-param>
                        <param-name>filterMappingUrlPattern</param-name>
                        <param-value>/PortalPrototype/*</param-value>
                </init-param>
        </filter>
        <filter-mapping>
                <filter-name>PortalPrototypeFilter</filter-name>
                <url-pattern>/PortalPrototype/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>

or just take some example based on wicket 1.4, change the libraries and try
to run it. If you fail, just send me your portlet and I'll try to fix it.
Best would be an example, that could be added to the wicketstuff project for
others.

Peter.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-x-Portlet-functionality-tp4650977p4650988.html
Sent from the Forum for Wicket Core developers mailing list archive at 
Nabble.com.

Reply via email to