[ https://issues.apache.org/jira/browse/ADFFACES-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer reassigned ADFFACES-420: ----------------------------------- Assignee: Adam Winer > Give better error message when UIXComponentTag is used without <f:view> > ----------------------------------------------------------------------- > > Key: ADFFACES-420 > URL: https://issues.apache.org/jira/browse/ADFFACES-420 > Project: MyFaces ADF-Faces > Issue Type: Improvement > Components: Components > Affects Versions: 2.0.0-incubating-core-SNAPSHOT, > 1.0.1-incubating-core-SNAPSHOT, 1.0.0-incubating-core > Reporter: Adam Winer > Assigned To: Adam Winer > > When you omit <f:view> on a page, you get an exception along the following > lines: > java.lang.ClassCastException: javax.faces.component.UIViewRoot > at > org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:99) > > (this in the 1.2 branch, where we have a UIXComponentELTag.) The problem is > that > the underlying UIComponentTag has actually associated itself with the > UIViewRoot, since > it's the first component in a page, and passed that to setProperties(), where > we try > to cast it to UIXComponent. Bad. We should detect UIViewRoots and throw a > meaningful exception, something like: > "<f:view> was not present on page: tag XXXX encountered without an > <f:view>" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.