This content has been marked as final.
Show 2 replies
-
1. Re: Conversation + modal + form submit issue
lvdberg Oct 28, 2009 4:58 PM (in response to fmontezuma)Hi Fabio,
Use am Ajax button to open the ModalPanel and
so-some-action
. The ajax-button (or link) has all the attributes you need to make it work:Small example;
<a4j:commandButton id="noteButton" image="../images/Edit.gif" action="#{WaheteverAction.doWhatYouNeedTodo}" eventsQueue="inputQueue" oncomplete="#{rich:component('yourModalPanel')}.show();" reRender="yourModalPanelContent, yourModalPanelHeader" />
The rerender attributes references two different id's in the modalmodal (one for the content and one for the header. The action can be used to
clean-up
everything.Leo
-
2. Re: Conversation + modal + form submit issue
fmontezuma Oct 28, 2009 6:08 PM (in response to fmontezuma)Thanks for the tip Leo.
Actually I already had try that. This piece of code alone doesn't work.
I got it working now, but I had to force submit and form reRender on modal close too. (so wrong fields are cleaned)I feel like this isn't right but that was the only way I could get it working as expected.