Hello,
I'm having trouble getting parameters to pass successfully with rich:componentControl. See code below.
I use a button to pop up a modal panel and want to pass some parameters into the panel. I tried both params= and f:param.
In the panel I've tried various combinations of {combined}, #{combined}, etc. in different places and all of them are empty, or just render "{combined}" in the output (same for foo).
Any ideas?
Thanks!
Greg
<a4j:commandButton id="loadCart" value="Load" alt="Load">
<rich:componentControl for="confirmLoad" attachTo="loadCart"
operation="show" event="onclick" params="'combined':'greg'" >
<f:param value="true" name="foo" />
</rich:componentControl>
</a4j:commandButton>
<!-- ... -->
<rich:modalPanel id="confirmLoad" width="350" height="100">
Hey! {combined} #{foo}<br/>
<h:outputText value="Opening a saved cart will discard your current shopping cart. #{combined} {foo}"/>
<br/>
<h:outputText value="Do you wish to continue?"/>
<a4j:commandButton value="Yes"
action="#{browserMgr.loadCart(true)}"
ajaxSingle="true"
rendered="#{combined}"
onclick="#{rich:component('confirmLoad')}.hide()"/>
<a4j:commandButton value="Yes"
action="#{browserMgr.loadCart(false)}"
rendered="#{!combined}"
ajaxSingle="true"
onclick="#{rich:component('confirmLoad')}.hide()"/>
<a4j:commandButton value="No"
onclick="#{rich:component('confirmLoad')}.hide()"/>
</rich:modalPanel>