Hi,
We are trying to run the echo wicket example application as a wicket portlet
on WAS 7.5.

We are able to load the echo application as a portlet but when we enter any
text and submit the form, the form doesn't gets submitted and the page
always gets loaded with the default echo text.

We are using the same echo example application given in the wicket examples
and we are using the wicket-1.4.2-SNAPSHOT versions for the portlet JSR 286
support.

Has the 286 support tested on WAS? Are there known issues?

The Wicket documentation mentions that we need to use WicketFilter instead
of WicketServlet, but when we run the wicket web application in WAS, the
application doesn't run with the WicketFilter. we need to change it to
WicketServlet to make it run. do Wicket Portlets also need the WicketServlet
configuration?

Where can we find more documentation on using Wicket for its Portlet 2.0
support?

Is there anything wrong in the following configuration?

the web.xml configuration


      <filter>
                <filter-name>EchoWicketFilter</filter-name>
                
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>

                <init-param>
                        <param-name>portletOnlyFilter</param-name>
                        <param-value>true</param-value>
                </init-param>
                <init-param>
                        <param-name>detectPortletContext</param-name>
                        <param-value>true</param-value>
                </init-param>
                <init-param>
                        <param-name>filterMappingUrlPattern</param-name>
                        <param-value>/echo/*</param-value>
                </init-param>
                <init-param>
                        <param-name>applicationClassName</param-name>
                        
<param-value>org.apache.wicket.examples.echo.EchoApplication
                        </param-value>
                </init-param>
        </filter>


        <filter-mapping>
                <filter-name>EchoWicketFilter</filter-name>
                <url-pattern>/echo/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>


and the portlet.xml configuration is as below.


     <portlet>
                <description>Trivial input form.</description>
                <portlet-name>EchoApplication</portlet-name>
                <display-name>echo</display-name>
        
<portlet-class>org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
                <init-param>
                        <name>wicketFilterPath</name>
                        <value>/echo</value>
                </init-param>

                <supports>
                        <mime-type>*/*</mime-type>
                        <portlet-mode>VIEW</portlet-mode>
                </supports>
                <portlet-info>
                        <title>Wicket Echo Example</title>
                        <keywords>Wicket</keywords>
                </portlet-info>
        </portlet>


Thanks,
Sunil.




-- 
View this message in context: 
http://www.nabble.com/Wicket-Portlets-on-WAS-7.5-tp22227452p22227452.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to