This content has been marked as final.
Show 1 reply
-
1. Re: a4j:commandButton's oncomplete does not wait for a4j:param
julez Nov 7, 2011 7:34 AM (in response to julez)After trying out several things I found a workaround with a jsFunction. My code now looks like this, it unfortunately loads the popupPanel twice, but that's ok for now.
I set the data via the jsFunction:
<a4j:jsFunction name="updatePopup" render="popup_panel">
<a4j:param name="id" assignTo="#{cc.attrs.psmViewerBean.popupData}"/>
</a4j:jsFunction>
And the buttons call the jsFunction via the onclick
<a4j:commandButton value="buttontext"
render="popup_panel"
execute="@this"
onclick="updatePopup(#{psmRow.id});"
oncomplete="#{rich:component('popup_panel')}.show(); return false;"/>