RichFaces
  1. RichFaces
  2. RF-12325

Literal value does not work for expanded attribute of rich:treeNode

    Details

    • Workaround Description:
      Hide

      public class UITreeNodeWorkaround extends UITreeNode {
      enum PropertyKeys

      { iterationState }

      @Override
      public Object getIterationState()

      { return getStateHelper().get(PropertyKeys.iterationState); }

      @Override
      public void setIterationState(Object state)

      { getStateHelper().put(PropertyKeys.iterationState, state); }

      }

      and in faces-config:

      <component>
      <component-type>org.richfaces.TreeNode</component-type>
      <component-class>com.example.UITreeNodeWorkaround</component-class>
      </component>

      Show
      public class UITreeNodeWorkaround extends UITreeNode { enum PropertyKeys { iterationState } @Override public Object getIterationState() { return getStateHelper().get(PropertyKeys.iterationState); } @Override public void setIterationState(Object state) { getStateHelper().put(PropertyKeys.iterationState, state); } } and in faces-config: <component> <component-type>org.richfaces.TreeNode</component-type> <component-class>com.example.UITreeNodeWorkaround</component-class> </component>
    • Similar Issues:
      Show 10 results 

      Description

      <rich:treeNode expanded="true">
      has no effect.

      Problem appears to be with AbstractTreeNode class, it saves iterationState by expanded key, overriding expanded property value.

        Gliffy Diagrams

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrey Zhemoytuk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development