Home » JSF f:validateRequired

JSF f:validateRequired

by Online Tutorials Library

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

// User.java

JSF F valirequired tag 1

You may also like