Wednesday, April 14, 2010

Pic16f877 Transceiver

JSF2.0 AJAX Support - jsf.js is not loaded

If you are caught in the "AJAX lifecycle" of a JSF2 will call, which entails the onEvent attributes are set.

\u0026lt;h: CommandButton
styleClass =

"button large"
action
= "# {} schlagView.addWorking" value
= "$ {msg.buttonAddWorkStep}" >
\u0026lt; f: ajax render =
"@ form"
execute
=
onevent =
"newRowEvent"

/ >
\u0026lt;/ h: command button> The JSF2 Spec (Javadoc) writes about this following. "The name of the JavaScript function that will handle UI events." All clear: In the above example, then the JavaScript function newRowEvent called.
looks at me the JS function like this: newRowEvent function (data) { if (data.status = 'success'
!)
return
;



/ / new line //...

}

The method is called 3 times in total - for each Ajax call state once. is interesting Here, the parameter data
. The Property status of data provides information about the current state of Ajax Calls: ·
; begin
·
complete
·
success

more property values of data, for example, ResponseCode
,
responseText , responseXML or source. The available properties vary depending on the status value. - reflects This behavior occurs to me exactly as to when using Mojarra JSF implementation in the out-of-the-box version for Glassfish v3

0 comments:

Post a Comment