ViewTag makes wrong class cast when using locale attribute ----------------------------------------------------------
Key: MYFACES-1394 URL: http://issues.apache.org/jira/browse/MYFACES-1394 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.5-SNAPSHOT Environment: Java 1.5.0.06 + JBoss Portal Server 2.2.1-SP3 Reporter: Jan Peter Stotz Attachments: Stacktrace.txt 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. See also: http://java.sun.com/javaee/javaserverfaces/1.0/docs/api/javax/faces/context/ExternalContext.html#getRequest() -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira