• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ajax and JSF  RSS feed

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I was looking at AJAX and JSF today just doing some simple examples.
I am wondering what is going on under the hood.
This is my understanding:
AJAX ads some magic so that when events are fired from the GUI for AJAX enabled components the JSF 6 phase lifecycle still happens but only for the AJAX enabled components not for the entire page.

So, say in the restore view, apply request values, process validations, update model values etc the only components and values that are considered or those from the ajax component.
Because of this, the request / response is quicker?

Is this true?

If not enlighten me...

Thanks.
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a pretty accurate assessment.

A fringe benefit is that the user doesn't have the visual "hit" of a page reload. Only selected parts of the page are updated.
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:That's a pretty accurate assessment.

A fringe benefit is that the user doesn't have the visual "hit" of a page reload. Only selected parts of the page are updated.


Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!