1 Reply Latest reply on Nov 24, 2008 4:11 PM by Wojciech Zawirski

    Problems with NodeSelectedEvent, HtmlTree

    Wojciech Zawirski Newbie

      I have a big problem with tree component. On xhtml tree looks like:

       <rich:tree style="width:200px"
       ajaxSubmitSelection="true" switchType="client"
       value="#{personManager2.tree}" var="item" ajaxKeys="#{null}" id="out">

      and it is OK. After click on node I have cast error:



      [lifecycle] /home.xhtml @46,76 nodeSelectListener="#{personManager2.processSelection}": javax.ejb.EJBTransactionRolledbackException:
      org.richfaces.component.html.HtmlTree cannot be cast to org.richfaces.component.html.HtmlTree



      NodeSelectListener looks like:



      public void processSelection(NodeSelectedEvent event){
       HtmlTree tree = (HtmlTree)event.getComponent();




      HtmlTree tree = (HtmlTree)event.getComponent();



      causes problem. How to resolve that problem? Where is the problem?
      I check JBoss 4.2.3 , 5.0 seam 2.1.0 and 2.1.1 and richfaces 3.2.2. and tried with jars and MANIFEST.MF file (class-path). Nothing wokrs.