This content has been marked as final.
Show 2 replies
-
1. Re: modalPanel content
rsinus Feb 19, 2008 12:40 AM (in response to krg9263)You can place content of modalPanel in simple container, h:panelGroup, for example.
To call method from managed bean and show modal panel use a4j:commandButton, a4j:commandLink, etc. Set action attribute and put "Richfaces.showModalPanel('...')" in oncomplete attribute. -
2. Re: modalPanel content
valtoni Feb 22, 2008 6:54 AM (in response to krg9263)Hmmm...
It's sound like a bug! I do strictly this:<a4j:commandLink action="#{ucAplicacao.seleciona}" reRender="mpEdicao" value="#{apl.aplicacao}" oncomplete="javascript:Richfaces.showModalPanel('mpEdicao');"/>
And nothing... The modal panel "mpEdicao" appear with style "visible: none". When i cut off the "reRender" directive, this works perfectly.
The curious about this: it's works fine with 3.0.0 rich faces, and stop working in rich faces 3.1.0. (?!?!)