• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rendered and Updated

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic