ICEfaces
  1. ICEfaces
  2. ICE-9251

ace:menuItem - Add support for the f:setPropertyActionListener tag

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: EE-3.2.0.GA, 3.3
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Feature Request: Add support for the f:setPropertyActionListener tag to be used with the ace:menuItem component. This will allow setting of a value when a specific menu item is clicked.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000OBbiiAAD
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Fix Version/s 3.4 [ 10770 ]
        Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ]
        Assignee Priority P2 [ 10011 ]
        Arturo Zambrano made changes -
        Attachment menuBar.xhtml [ 15884 ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        Hide
        Arturo Zambrano added a comment -

        This has been tested on both Mojarra and MyFaces, and it is currently supported by both frameworks.

        The following code was used to test this feature. When selecting the menu item, the h:outputText will take whatever value the h:inputText has. Just make sure to also add an ace:ajax tag to the menu item to render the h:outputText and see the changes right away. The f:setPropertyActionListener tag also supports using a literal value in the 'value' attribute.

        <h:inputText value="#{bean.value2}"><f:ajax /></h:inputText>
        <h:outputText value="#{bean.value1}" />
        <ace:menuBar id="menu" autoSubmenuDisplay="true">
        	<ace:menuItem id="item" value="Click">
        		<ace:ajax event="activate" execute="@form" render="@form" />
        		<f:setPropertyActionListener target="#{bean.value1}" value="#{bean.value2}"/>
        	</ace:menuItem>
        ...
        
        Show
        Arturo Zambrano added a comment - This has been tested on both Mojarra and MyFaces, and it is currently supported by both frameworks. The following code was used to test this feature. When selecting the menu item, the h:outputText will take whatever value the h:inputText has. Just make sure to also add an ace:ajax tag to the menu item to render the h:outputText and see the changes right away. The f:setPropertyActionListener tag also supports using a literal value in the 'value' attribute. <h:inputText value= "#{bean.value2}" ><f:ajax /></h:inputText> <h:outputText value= "#{bean.value1}" /> <ace:menuBar id= "menu" autoSubmenuDisplay= " true " > <ace:menuItem id= "item" value= "Click" > <ace:ajax event= "activate" execute= "@form" render= "@form" /> <f:setPropertyActionListener target= "#{bean.value1}" value= "#{bean.value2}" /> </ace:menuItem> ...
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: