- User clicks button in client
onclick
JavaScript code is executed- JavaScript prepares ajax request based on
process
and current HTML DOM tree onstart
JavaScript code is executed- JavaScript sends ajax request from client to server
- JSF retrieves ajax request
- JSF processes the request lifecycle on JSF component tree based on
process
actionListener
JSF backing bean method is executedaction
JSF backing bean method is executed- JSF prepares ajax response based on
update
and current JSF component tree - JSF sends ajax response from server to client
- JavaScript retrieves ajax response
- if HTTP response status is 200,
onsuccess
JavaScript code is executed - else if HTTP response status is 500,
onerror
JavaScript code is executed
- if HTTP response status is 200,
- JavaScript performs
update
based on ajax response and current HTML DOM tree oncomplete
JavaScript code is executed
References: http://stackoverflow.com/a/20146879
1 則留言:
Betway Casino Bonus Code is MAXBONUS | ᐈ 30 Free Spins
Casino Review, wooricasinos.info Bonuses, FAQ & More! septcasino.com New players welcome https://tricktactoe.com/ bonus $10 casinosites.one no deposit bonus aprcasino + 100% up to $1000 in Betway Casino Bonuses!
張貼留言