You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org> on 2007/04/12 20:02:31 UTC
[jira] Resolved: (TOBAGO-349) ClassCastException with tree in a
popup
[ https://issues.apache.org/jira/browse/TOBAGO-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Bohmann resolved TOBAGO-349.
----------------------------------
Resolution: Fixed
> ClassCastException with tree in a popup
> ---------------------------------------
>
> Key: TOBAGO-349
> URL: https://issues.apache.org/jira/browse/TOBAGO-349
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.10
> Reporter: Bernd Bohmann
> Assigned To: Bernd Bohmann
> Fix For: 1.0.11
>
>
> Helmut Swaczinna:
> I want to display a tc:tree in a tc:popup. The tree is displayed,
> but when I click on the text of a node I get a ClassCastException.
> There's no problem, when the tree is on a normal page.
> The stacktrace:
> java.lang.ClassCastException: org.apache.myfaces.tobago.component.UITreeOldNode
> at org.apache.myfaces.tobago.component.UIPopup.isRedisplay(UIPopup.java:89)
> at org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:75)
> at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:13
> 8)
> at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
> at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
> at org.apache.myfaces.tobago.taglib.component.TobagoTag.doEndTag(TobagoTag.java:181)
> at org.apache.myfaces.tobago.taglib.component.TobagoBodyTag.doEndTag(TobagoBodyTag.java:56)
> at org.apache.myfaces.tobago.taglib.component.PageTag.doEndTag(PageTag.java:57)
> ...
> The JSP code:
> <tc:link id="historieLink"
> disabled="false"
> label="#{workflowBundle.link_label_historie}"
> tip="#{workflowBundle.link_tip_historie}">
> <f:facet name="popup">
> <tc:popup id="historiePopup" width="900" height="500">
> <tc:box id="historieBox"
> label="#{workflowBundle.link_label_historie}">
> <f:facet name="layout">
> <tc:gridLayout rows="*;fixed" columns="*;*;*"/>
> </f:facet>
> <tc:cell spanX="3">
> <tc:tree id="historieTree"
> value="#{workflowController.tree}"
> state="#{workflowController.treeState}"
> idReference="userObject.id"
> nameReference="userObject.name"
> showIcons="true"
> showJunctions="true"
> showRootJunction="true"
> showRoot="true"
> selectable="none"
> mutable="false"
> tipReference="userObject.name">
> </tc:tree>
> </tc:cell>
> <tc:cell/>
> <tc:button id="closeButton"
> label="#{mainBundle.button_label_close}">
> <tc:attribute name="popupClose" value="immediate"/>
> </tc:button>
> <tc:cell/>
> </tc:box>
> </tc:popup>
> </f:facet>
> </tc:link>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.