what is data.foo syntax in JSF/Rich Faces?
Say for example,
<a4j:support event="onchange" action="#{bean.retrieveStates}"
reRender="states_dropDown" data="#{student}"></a4j:support>
i am passing student object in data attribute. can I access in managed bean?
Documentation says this
“Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It’s accessible via “data.foo” syntax “
can some one please explain.
From this blogpost:
So yes – you can access any attribute of the managed bean and reference it (most often) in
oncomplete.