[
https://issues.jboss.org/browse/RF-11842?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-11842:
------------------------------------
An example of _macrosubstitution_ for the richfaces 3 showcase:
{code:title=contextMenu}
<rich:contextMenu attached="false" id="menu"
submitMode="ajax">
<rich:menuItem ajaxSingle="true">
<b>{car} {model}</b> details
<a4j:actionparam name="det" assignTo="#{ddmenu.current}"
value="{car} {model} details"/>
</rich:menuItem>
<rich:menuGroup value="Actions">
<rich:menuItem ajaxSingle="true">
Put <b>{car} {model}</b> To Basket
<a4j:actionparam name="bask"
assignTo="#{ddmenu.current}" value="Put {car} {model} To Basket"/>
</rich:menuItem>
<rich:menuItem value="Read Comments" ajaxSingle="true">
<a4j:actionparam name="bask"
assignTo="#{ddmenu.current}" value="Read Comments"/>
</rich:menuItem>
<rich:menuItem ajaxSingle="true">
Go to <b>{car}</b> site
<a4j:actionparam name="bask"
assignTo="#{ddmenu.current}" value="Go to {car} site"/>
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
{code}
{code:title=componentControl}
<rich:componentControl event="onRowClick" for="menu"
operation="show">
<f:param value="#{car.model}" name="model"/>
<f:param value="#{car.make}" name="car"/>
</rich:componentControl>
{code}
Note, the replacement text in the contextMenu _{model}_ is not EL, this is a marker for
substitution to be executed client side.
Support for macrosubstitutions in the contextMenu
-------------------------------------------------
Key: RF-11842
URL:
https://issues.jboss.org/browse/RF-11842
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component-menu
Affects Versions: 4.1.1.Final
Reporter: Brian Leathem
Fix For: 4.2.0.Tracking
The RichFaces 3 contextMenu supported _macrosubstitutions_, whereby a single instance of
the contextMenu will be created and among multiple components. This RichFaces 4
contextMenu should support this feature.
See the [RichFaces 3
showcase|http://livedemo.exadel.com/richfaces-demo/richfaces/contextMenu.jsf] for an
example of this behaviour.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira