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

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Attachment tree-basic-tutorial.war [ 11330 ]
        Tyler Johnson made changes -
        Ken Fyten made changes -
        Fix Version/s 1.8DR#3 [ 10143 ]
        Assignee Mark Collette [ mark.collette ]
        Tyler Johnson made changes -
        Salesforce Case [50070000007BSDA]
        Tyler Johnson made changes -
        Attachment src.zip [ 11364 ]
        yip.ng made changes -
        Attachment screenshot-1.jpg [ 11370 ]
        yip.ng made changes -
        Attachment screenshot-2.jpg [ 11371 ]
        yip.ng made changes -
        Attachment screenshot-3.jpg [ 11372 ]
        Ken Fyten made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Assignee Mark Collette [ mark.collette ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: