Facelet remove Tag

This tag is used to remove content within this tag from a facelet at compile time. This tag don't have any attribute. This tag can be used with jsfc attribute which shows that the particular tag will be removed. In this example, the line "This line will be removed" will be removed from facelet at the time of compilation and so will not be displayed. In this example, the line where jsfc attribute is used and set to the ui:remove is not considered for compilation so input text box for this line of code will not be displayed.

Code Description :



xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">

RoseIndia Facelet Tags Tutorial


Welcome to the Facelet world..........








jsfc="ui:remove" value="IT" />
This line will be removed



This is the content below decorate tag.



Rendered Output :

Html Source Code :





RoseIndia Facelet Tags Tutorial


Welcome to the Facelet world..........






facelet example



This is the text to be displayed.

name="_id7" value="This i/p box is rendered" />



This is the content below decorate tag.



This tag has no attribute.

0 comments:

Post a Comment