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