Javatpoint Logo
Javatpoint Logo

JSF <f:validateRequired> Tag

It is used to ensure that the local value is not empty on an EditableValueHolder component.

Tag Attributes

Attribute Description
binding It is used to bind a ValueExpression that evaluates to an instance of RequiredValidator.
for This attribute is used to refers to the value of one of the exposed attached objects within the composite component inside of which this tag is nested.
id It is a unique component identifier.
class It is used to represent CSS class.

JSF <f:validateRequired> Tag Example

// index.xhtml


JSF F valirequired tag 1

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA