You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Adam Winer (JIRA)" <ad...@incubator.apache.org> on 2007/04/14 19:15:15 UTC
[jira] Resolved: (ADFFACES-420) Give better error message when
UIXComponentTag is used without
[ https://issues.apache.org/jira/browse/ADFFACES-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer resolved ADFFACES-420.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.0.1-incubating-core-SNAPSHOT
2.0.0-incubating-core-SNAPSHOT
Fixed.
> 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
> Fix For: 2.0.0-incubating-core-SNAPSHOT, 1.0.1-incubating-core-SNAPSHOT
>
>
> 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.