-
1. Re: render modalPanel after the setters have been called on
ilya_shaikovsky May 14, 2008 4:16 AM (in response to titou09)add reRender="detail" to a4j:command - this should refresh modals content in order to new data.
in generel your componentControl should works.. If there is some JS errors after request? -
2. Re: render modalPanel after the setters have been called on
titou09 May 14, 2008 8:20 AM (in response to titou09)thx for your answer but there is no component named "detail" in my code
I tried with reRender="panel" but this does not work either
and no, there is no js error
maybe this is the 'event="oncomplete"' that doesnt fire? -
3. Re: render modalPanel after the setters have been called on
titou09 May 14, 2008 10:21 AM (in response to titou09)after further investigation, the "reRender" is correctly executed, ie the getters are called
what is not working is that the panel does not pop up.
if I change<a4j:commandButton id="afficher" value="afficher" > <rich:componentControl for="afficher" event="oncomplete" attachTo="panel" operation="show" /> </a4j:commandButton>
by<a4j:commandButton id="afficher" value="afficher" oncomplete="Richfaces.showModalPanel('panel') /> it works!
-
4. Re: render modalPanel after the setters have been called on
eicki May 14, 2008 1:28 PM (in response to titou09)Try
<a4j:commandButton id="afficher" value="afficher" >
<rich:componentControl for="panel" event="oncomplete" operation="show" />
</a4j:commandButton>
That works in my app.
You may theoretically use as well attachTo="afficher" and define compontControl outside of the commandButton. But this somehow does not work for the oncomplete event (for onclick it does). -
5. Re: render modalPanel after the setters have been called on
ilya_shaikovsky May 15, 2008 7:59 AM (in response to titou09)http://jira.jboss.com/jira/browse/RF-3427
created.
use workaround please for now. -
6. Re: render modalPanel after the setters have been called on
moldovan May 15, 2008 8:19 AM (in response to titou09)hy titou09!
Try following:
give the table in your modalPanel an id, define this id in the reRender attribute of your commandButton and define the showModalPanel-js-call in the oncomplete-attribute of your commandButton.
This is working in all of my sites!
hope, this helps! -
7. Re: render modalPanel after the setters have been called on
titou09 May 15, 2008 9:10 AM (in response to titou09)Thanks everybody for your help. To summarize this problem:
This does not work:<a4j:commandButton id="afficher" value="afficher" reRender="panel"> <rich:componentControl for="panel" event="oncomplete" operation="show" attachTo="afficher"/> </a4j:commandButton>
This works (removed the "attachTo" attribute):<a4j:commandButton id="afficher" value="afficher" reRender="panel"> <rich:componentControl for="panel" event="oncomplete" operation="show"/> </a4j:commandButton>
This works also (removed tag "componentControl", added "oncomplete" attribute):<a4j:commandButton id="afficher" value="afficher" reRender="panel" oncomplete="Richfaces.showModalPanel('panel')"/>
JIRA: http://jira.jboss.com/jira/browse/RF-3427