servlets struts hibernate spring maven java
 

JSF <h:outputText>Tag



It is utilized to render a plain content. On the off chance that the "styleClass", "style", "dir" or "lang" properties are available, render a "length" component. On the off chance that the "styleClass" quality is available, render its incentive as the estimation of the "class" attribute.


JSF <h:outputText> Tag Example 1:

  1. <h:outputText value="hello"></h:outputText>  

JSF renders it as plain text

hello

JSF <h:outputText> Tag Example 2:

  1. <h:outputText value="hello" lang="en" style="color: red"></h:outputText>  

JSF renders it as a HTML span tag

  1. <span style="color: red" lang="en">hello</span>  

JSF <h:outputText> Tag attributes

Attribute Description
value It holds current value of this component.
id It is an identifier for this component. This id must be unique. You can use it to access HTML element in CSS and JS file.
style It is used to apply CSS for the component.
class It gives class name to the component. It is used to access component from CSS and JS file.
lang It is used to specify language. It helps to make web page localized.






© Javacodegeeks © 2019 - 2019
All Right Reserved and you agree to have read and accepted our term and condition.

Python 3