In JSF 2.0 web application, "h:outputText" tag is the most common used tag to display plain text, and it doesn't generate any extra HTML elements. See example- 1. Managed Bean A managed bean, provide some text for demonstration. import javax.fac…
The immediate attribute in JSF is commonly misunderstood. If you don't believe me, check out Stack Overflow. Part of the confusion is likely due to immediate being available on both input (i.e.. <h:inputText />) and command (i.e. <h:commandButton…
In JSF, <h:link />, <h:commandLink /> and <h:outputLink /> tags are used to render a HTML "a" anchor element, see below examples to understand the different among them. Note In below examples, assume "/JavaServerFaces/&quo…
In JSF, you can use the <h:inputTextarea /> tag to render a HTML textarea field. For example, JSF tag- <h:inputTextarea cols="30" rows="10" /> Render this HTML code- <textarea name="random value" cols="30&…