ICEfaces
  1. ICEfaces
  2. ICE-3758

ContextValue does not work when used within a tree

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.8RC1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      A contextValue parameter has been added to the panelGroup within the tree node:

      <ice:tree>
                     <ice:treeNode>
                              <f:facet name="content">
                                  <ice:panelGroup menuPopup="::::j_id13:A" contextValue="#{item.userObject}"
                                      `<ice:outputText value="#{item.userObject.text}" />
                                  </ice:panelGroup>
                              </f:facet>
       </ice:treeNode>

      The doSomething method will reference the contextValue here:

      <ice:menuPopup id="A" value="Do Something">
               <ice:menuItem id="item1" onclick="return false;" value="Item 1"/>
                 <ice:menuItem id="item2" actionListener="#{tree.doSomething}" value="Item 2"/>
                  </ice:menuPopup>

      and subsequently:

        public void doSomething(ActionEvent e)
          {
           ContextActionEvent c = (ContextActionEvent) e;
           IceUserObject i = (IceUserObject) c.getContextValue();
          }

      The contextValue parameter that is passed is always null.

        Activity

        There are no subversion log entries for this issue yet.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: