Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.1.5-SNAPSHOT
-
None
-
None
-
Java 1.5.0.06 + JBoss Portal Server 2.2.1-SP3
Description
When using JSF inside a portlet the locale attribute of the view-tag can not be used because a ClassCastException is thrown.
This is because ViewTag.setProperties(UIComponent component) assumes that getFacesContext().getExternalContext().getRequest() returns a javax.servlet.ServletRequest which is only correct for non-portlets. For portlets it returns an javax.portlet.PortletRequest which can not be casted to javax.servlet.ServletRequest.