This content has been marked as final.
Show 1 reply
-
1. Re: Scope of params form componentControl
slcon1 Aug 25, 2008 10:32 AM (in response to slcon1)The modal panel can show the value in an alert box but doesn't show it in the outputText.
<rich:modalPanel id="SHOW_PANEL" onshow="alert(event.parameters.myParam)" > <%-- Alerts "somevalue" --%> <h:outputText value="{myParam}"/> <%-- Shows "{myParam}" --%> </rich:modalPanel> <rich:contextMenu id="SHOW_MENU"> <rich:menuItem > <h:outputText value="{myParam}"/> <%-- Shows "somevalue" --%> </rich:menuItem> </rich:contextMenu> <h:outputText id="componentTest" value="Component Test" > <rich:componentControl for="SHOW_MENU,SHOW_PANEL" event="onclick" operation="show"> <f:param name="myParam" value="somevalue"/> </rich:componentControl> </h:outputText>
How Can I pass values to the modalPanel?