This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes Rendered and Updated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rendered and Updated" Watch "Rendered and Updated" New topic
Author

Rendered and Updated

Dario Sarcevic
Greenhorn

Joined: Mar 10, 2012
Posts: 5
Hello!

I am new to JSF and I found something what I dont understand well. I would be very thankful if some could explain me what is difference between updated and rendered?

Thanks in advance.

Dario
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17161
    
  27

"rendered" means that a graphic element is drawn on the resulting webpage. If you set "rendered=false" on an element, that element (and its childred) will not be displayed.

"updated" isn't actually a formal JSF term, but all it means usually is that the web page is re-drawn. AJAX uses a concept known as "partial page updating" to redraw only a section of the page without erasing and redrawing the whole page.

When a page (or page parts) is updated, the rendered= values for the elements being updated will be applied according to their current values. So you can use a partial page update to show and hide a section of a page.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rendered and Updated
 
It's not a secret anymore!