This content has been marked as final.
Show 2 replies
-
1. Re: seam page action and rich:modalPanel
damianharvey.damianharvey.gmail.com Jun 15, 2009 1:55 PM (in response to knice147)You'd be better to call it using the modals onbeforeshow (or onshow) event.
I can think of a couple of approaches:
1. Add an a4j:support tag to the modal (haven't tried this but should work). eg:
<rich:modalPanel id="modal"> <a4j:support event="onbeforeshow" action="#{myBean.myPageAction}" ajaxSingle="true" reRender="modalDiv"/> <s:div id="modalDiv"> ... </s:div> </rich:modalPanel>
2. Use an a4j:jsFunction
<rich:modalPanel id="modal" onbeforeshow="doAction"> <s:div id="modalDiv"> ... </s:div> </rich:modalPanel> <a4j:jsFunction name="doAction" action="#{myBean.myPageAction}" reRender="modalDiv"/>
Cheers,
Damian.
-
2. Re: seam page action and rich:modalPanel
schmu Mar 27, 2012 6:05 AM (in response to damianharvey.damianharvey.gmail.com)Hello together
The first solution is not working. But I have no idea why ... Maybe it's because we are now already on the Richfaces Version V3.3.3.FINAL...