This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF lifecycle beginner question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF lifecycle beginner question" Watch "JSF lifecycle beginner question" New topic
Author

JSF lifecycle beginner question

Jon Baxter
Greenhorn

Joined: Dec 03, 2004
Posts: 9
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

Joined: Jul 11, 2001
Posts: 15230

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF lifecycle beginner question
 
Similar Threads
Dynamically generate Panel grid elements
How do I create form controls dinamically with DHTML and deal all those with JSF??
JSF and HTML
Displaying many rows in an html table.
how would i create a table with dynamic rows and columns using only JSF components?