-
1. Re: Control the execution order in Richfaces
ziyang Oct 28, 2010 12:44 PM (in response to ziyang)Got an answer!!!
This blog helped me. Although the solution in the blog did not work for me, I get a workable solution from the comments.
Here is a my piece of workable code. Ask me if you have any questions!!!
<rich:column>
<a4j:commandLink id="link" action="#{SortableTable.sayHi}" oncomplete="#{rich:component('panel')}.show()" >
<f:param name="name" value="#{row.name}" />
Show Modal Panel
</a4j:commandLink>
<rich:modalPanel id="panel" width="350" height="100">
<f:facet name="header">
<h:outputText value="Modal Panel"></h:outputText>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:commandLink value="aaa" id="hidelink"/>
<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="#{SortableTable.content}"></h:outputText>
</a4j:outputPanel>
</rich:modalPanel>
</rich:column> -
2. Re: Control the execution order in Richfaces
liuliu Nov 2, 2010 4:03 AM (in response to ziyang)hi,
you need a renrender in your commandlink. i think ajaxRendered attribute is not fit.
hope this help.
liu
-
3. Re: Control the execution order in Richfaces
ziyang Nov 2, 2010 9:40 AM (in response to liuliu)Thank you for your advise.The code I posted after my question is a piece of totally workable code. Thanks a lot.