Hello Helmut,

thanks for the hint.
See https://issues.apache.org/jira/browse/TOBAGO-349

please try the next nightly build.

Regards

Bernd

H. Swaczinna wrote:
Hi,

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>


Regards
Helmut

Reply via email to