Hi Ate, Ate Douma a écrit : Charly wrote:You're right. Because if I keep the same HttpServletRequest, I have a ClassCastException later because Liferay use these specific objects... I tried that solution first. In that case, the url looks like that : http://localhost:8080/user/joebloggs/3?p_p_id=NavomaticApplication_WAR_wicketexamples&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_NavomaticApplication_WAR_wicketexamples__wuview=%2Fnavomatic%2F%3Fwicket%3AbookmarkablePage%3D%253Aorg.apache.wicket.examples.navomatic.Page2 But the WebRequestCodingStrategy (at line : 518) use the request.getParameter() and on my debug sessions i saw that the portletArgs i've put in the PortletURLImpl parameters are available in the queryString but not in the parameters of the request ... (looks strange for me too, it seems to be a liferay's bug) About that question, as you can see in the sample url I've put, we have wicket%3AbookmarkablePage%3D%253Aorg.apache.wicket.examples.navomatic.Page2 you can see that the there are 2 encoding : 1) wicket set the parameter from ":org.apache.wicket.examples.navomatic.Page2" to "%3Aorg.apache.wicket.examples.navomatic.Page2" 2) Liferay encode the "%" character to "%25" When Liferay get back the Encoded parameter, the "%25" is set into "%" but no Wicket Code transform back the "%3A" to ":" Note : Wicket Encoding is done by : org.apache.wicket.request.target.coding.WebRequestEncoder : line 86 escapedValue = URLEncoder.encode(escapedValue, application.getRequestCycleSettings().getResponseRequestEncoding()); and I can't find a decode for this level in Wicket's code. Your Right, the redirectURL is not null in BufferedWebResponse.java:66, but is set to null by Liferay's code on : com.liferay.portlet.PortletServletResponse code is : public String encodeRedirectURL(String url) { return null; } I don't know why, but I have to see with Liferay's Team. (very strange code)
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Charles CHAHBAZIAN [EMAIL PROTECTED] Directeur Recherche & Développement 15 quai Tilsitt - 69002 LYON tel. +33 478 38 54 18 - fax +33 426 68 91 68 ............................................................................... >>> www.alinto.net - The messaging reflex <<< |
- Portlet howto Thijs
- Re: Portlet howto Ate Douma
- Re: Portlet howto Thijs
- Re: Portlet howto Charly
- Re: Portlet howto Ate Douma
- Re: Portlet howto Patrick Gill
- Re: Portlet howto Ate Douma
- Re: Portlet howto Patrick Gill
- Re: Portlet howto Charly
- Re: Portlet howto Ate Douma
- Re: Portlet howto Charles CHAHBAZIAN
- Re: Portlet howto Thijs
- Re: Portlet howto Thijs
- Re: Portlet howto Miso
- Re: Portlet howto Gwyn Evans
- Re: Portlet howto Ate Douma