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

        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> ...

          People

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

            Dates

            • Created:
              Updated:
              Resolved: