0 Replies Latest reply on Jul 7, 2011 2:00 PM by Nina Check

    rich:tree selecting incorrect data model

    Nina Check Newbie

      I have an issue with my code when it calls treeState.expandNode - if I step into the richfaces code (using richfaces 3.3.3 final) - it ends up getting to UIDataAdaptorBase.setRowKey, where the call to getExtendedDataModel() creates a new, however INCORRECT dataModel of type StackingTreeModel.

       

      Somehow, the following line:

       

      Object value = this.getValue() is returning null and therefore the wrong data model is created.  I have other rich:tree occurrences in my application using very similar logic, but for some reason this tree doesn't work - I have spent days trying different things and nothing seems to work.  The call to expandNode is made by AJAX request - and the tree is already rendered, however not fully expanded during the call to expandNode.

       

      Can anyone shed some light on why this might be happening?

       

      Thanks!