What is data.foo syntax in JSF / Rich Faces

What is the 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 pass an object object in a data attribute. can i access a managed bean? The documentation says this "Serialized (by default with JSON) data passed by the client by the developer at the request of AJAX. It is accessible through the syntax" data.foo "

can someone explain.

+3
source share
1 answer

From this blogpost :

, Ajax. data bean EL, JSON . :

<a4j:commandButton value="Submit" reRender="out"
   data="#{bean.text}"
   oncomplete="alert(data)"/>

, - bean ( ) oncomplete.

+3

Source: https://habr.com/ru/post/1727347/


All Articles