Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF lifecycle beginner question

 
Jon Baxter
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since JSF builds the view of the page, wires event handlers and validators to components in the view, and saves the view in the FacesContext instance
during the restore view phase, how does it handle view components dynamically added on the view using JS/DHTML. i.e.,

if I have a page where I add/delete rows to a table using DHTML/JS (in order to avoid a server trip) would those modified rows be registered in
the JSF view tree?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. How would it without a trip to the server? And in reality you wouldn't want to do it this way. The whole point in using JSF Components in your page is so that JSF handles it's rendering. If you would prefer to handle all your rendering using Js/DHTML I would suggest not using JSF. Either that or write your own custom component(s).
[ March 17, 2005: Message edited by: Gregg Bolinger ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!