1 Reply Latest reply on Jun 6, 2008 3:29 AM by Denis Marzadro

    rich:treeNode possible feature (?)

    Denis Marzadro Novice

      Hi,
      i used rich:treeNode to define a specific behaviour for each type of node.
      (code just as example)
      <rich:treeNode type="folder" icon="#{item.imageFolderIcon}">
      <h:outputText value="#{item.text}"/>
      </rich:treeNode>
      <rich:treeNode type="leaf" iconLeaf="#{item.imageLeafIcon}" >
      <h:outputText value="#{item.text}"/>
      </rich:treeNode>

      It works well but i get a bad behaviour when i changed the values (costants in my class) that defines the type of the node and forget to change the label in jsp.
      This just to tell it could be useful link values type used in java classes with and valuse used in jsp for example importing constants class in jsp and setting type attribute by a scriptlet (actully it is not possible).

      greets

        • 1. Re: rich:treeNode possible feature (?)
          Denis Marzadro Novice

          i forgot to tell i use richfaces 3.2.1GA with tomcat 6

          "den74" wrote:
          Hi,
          i used rich:treeNode to define a specific behaviour for each type of node.
          (code just as example)
          <rich:treeNode type="folder" icon="#{item.imageFolderIcon}">
          <h:outputText value="#{item.text}"/>
          </rich:treeNode>
          <rich:treeNode type="leaf" iconLeaf="#{item.imageLeafIcon}" >
          <h:outputText value="#{item.text}"/>
          </rich:treeNode>

          It works well but i get a bad behaviour when i changed the values (costants in my class) that defines the type of the node and forget to change the label in jsp.
          This just to tell it could be useful link values type used in java classes with and valuse used in jsp for example importing constants class in jsp and setting type attribute by a scriptlet (actully it is not possible).

          greets