RichFaces
  1. RichFaces
  2. RF-12325

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

    Details

    • Type: Bug Bug
    • Status: Open Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.2.Final
    • Fix Version/s: 5-Tracking
    • Component/s: component-tree
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated: