3 Replies Latest reply on Jul 12, 2016 3:55 AM by Michal Petrov

    problems with node deletion after richfaces 4 migration

    jsf learner Newbie

      Migrating my project from richfaces  3 to 4.  i have a delete functionality of the  child node from parent. i have to  access the  parent id fro m child so that it can be passed to bean for framing delete queriy.

      But the var attribute of treemodeldaptor does not give details of parent from child. pls help.. had tried below workaround from another place....but  failed...

       

      rich:tree ... var="node"> <!-- Add a 'var' attribute -->
        
      <rich:treeModelAdapter>
        
      <c:set var="vm_host" value="#{node}"/>
        
      <rich:treeNode .../>
        
      <rich:treeModelAdapter>
        
      <c:set var="vm_guest" value="#{node}"/>
        
      <rich:treeNode .../>
        
      </rich:treeModelAdapter>
        
      </rich:treeModelAdapter>
      </rich:tree>


      on trying to access vm_host from my second adapter, it is overwritten with value of vm_guest only