You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by suneeelu <su...@gmail.com> on 2009/02/26 17:11:46 UTC

Wicket Portlets on WAS 7.5


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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket Portlets on WAS 7.5

Posted by Philippe Marzouk <ph...@ozigo.org>.
On Thu, Feb 26, 2009 at 08:11:46AM -0800, suneeelu wrote:
> 
> 
> 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?

I don't know about WAS 7.5 or portlet but on WAS 6.1 for wicket to run
with WicketFilter you have to apply this solution else you get 404
HTTP errors:

http://www-01.ibm.com/support/docview.wss?uid=swg24014758

Philippe

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