This content has been marked as final.
Show 5 replies
-
1. Re: problem with UISeamCommandBase.isPortletRequest()
zjsun Apr 18, 2008 5:10 AM (in response to zjsun)any ideas?
-
2. Re: problem with UISeamCommandBase.isPortletRequest()
zjsun Apr 22, 2008 8:21 AM (in response to zjsun)then, how can i control url encode behavior manually?
-
3. Re: problem with UISeamCommandBase.isPortletRequest()
zjsun Apr 23, 2008 4:14 PM (in response to zjsun)org.jboss.seam.ui.component.UISeamCommandBase :
private static Class PORTLET_REQUEST; static { try { PORTLET_REQUEST = Class.forName("javax.portlet.PortletRequest"); } catch (Exception e) {} } private static boolean isPortletRequest(FacesContext facesContext) { return PORTLET_REQUEST !=null && PORTLET_REQUEST.isInstance( facesContext.getExternalContext().getRequest() ); } public String getUrl() throws UnsupportedEncodingException { ... ViewUrlBuilder url = new ViewUrlBuilder(viewId, getFragment(), !isPortletRequest(getFacesContext())); ... }
-
4. Re: problem with UISeamCommandBase.isPortletRequest()
pmuir May 11, 2008 6:28 PM (in response to zjsun)I don't understand, they must still implement PortletRequest. What patch would fix this?
-
5. Re: problem with UISeamCommandBase.isPortletRequest()
zjsun May 13, 2008 6:01 AM (in response to zjsun)for example, add an attribute
encode
to s:button and s:link, the url encoding behavior should execute according to this attribute.