I need to pass an argument like #{bean.userProfile} to a method like clear(UserProfile profile) in the backing bean.
<a4j:commandButton value="Cancel" onclick="#{rich:component('id_up')}.hide()" execute="@this" type="reset" action="#{profilesBean.clear()}" render="id_panel">
I'm looking for the syntax for writing something like this in the action:
action="#{profilesBean.clear(#profilesBean.selectedProfile)}"
I need to send all userProfile attributes via "selectedProfile".