Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render & Rendered concepts

Can any one explain me what the main purpose of render and rendered attributes in all JSF, RichFaces component ?

regards

like image 915
Ouadi Avatar asked Jun 17 '26 02:06

Ouadi


2 Answers

In JSF, components from your Facelets are created on server, forming some kind of component tree. Most of these components should be rendered in HTML in some way, and that is role of Renderer. It will create HTML code which represents that component.

rendered attribute is available on components which can be rendered. It is boolean attribute and if it is true (which is as I know always true by default) that component will be rendered, and its HTML will be sent to clients browser. If it is false that component will not be rendered in clients browser.

like image 200
partlov Avatar answered Jun 20 '26 06:06

partlov


In java server faces, render is an attribute of a JSF component using which we can load one or more other components on completion of the specific action .

rendered is another property of a JSF components which will have a boolean value, based on which the component will be rendered . If rendered is true then the component will be rendered , otherwise not .

like image 30
Kshitij Jain Avatar answered Jun 20 '26 08:06

Kshitij Jain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!