0 Replies Latest reply on Jun 9, 2008 8:09 AM by Denis Marzadro

    rich:treeNode problem to investigate (IllegalStateException)

    Denis Marzadro Novice

      Hi, i want let you know about this possible problem:
      (my env richfaces 3.2.1GA and tomcat 6)

      I implemented my custom TreeNodeImpl and used a "text" attribute to define the node/leaf value to display.
      When i select a leaf i receive this error:

      9-giu-2008 13.51.49 com.sun.faces.lifecycle.UpdateModelValuesPhase execute
      AVVERTENZA: org.apache.jasper.el.JspELException: /pages/nautilusPanel.jsp(26,7) '#{nautilusFormBean.processSelection}' java.lang.IllegalStateException: No tree element available or row key not set!

      After long tests I findout it depend on the label i set for the attribute "text".
      If i set a label that contains more than one spaces "xxxx dfddfd " the label are shown in the format "xxxx dfddfd" but if i try to select the leaf i get the error described above.
      To be completely correct: no even is fired till i select a valid node, and only after that if the next select (on a malformed label node) send me the error.
      I hope i have clearly described the problem, if not feel free to ask me more info.

      greetings