Parent Project
Project Documentation

Summary

Tag name: <tr:validateLongRange>

type: org.apache.myfaces.trinidad.LongRange

Validate that the value entered is within a given range.

Code Example(s)

<tr:inputText id="mdf3" value="#{bean.value}"
                               label="max validator">
  <tr:validateLongRange maximum="#{bean.maxValue}"/>
</tr:inputText>

Attributes

Name Type Supports EL? Description
disabled boolean Yes Default Value: false

Whether the converter should be disabled, default to false.
maximum long Yes The maximum long value of the entered value.
messageDetailMaximum String Yes

The detail error message to be used for constructing faces messages, when input value exceeds the maximum value set.

Parameters:

  • {0} the label that identifies the component
  • {1} value entered by the user
  • {2} the maximum allowed value
messageDetailMinimum String Yes

The detail error message to be used for constructing faces messages, when input value is less than the set minimum value.

Parameters:

  • {0} the label that identifies the component
  • {1} value entered by the user
  • {2} the minimum allowed value
messageDetailNotInRange String Yes

The detail error message to be used for constructing faces messages, if input value is not with in the range, when minimum and maximum is set.

Parameters:

  • {0} the label that identifies the component
  • {1} value entered by the user
  • {2} the minimum allowed value
  • {3} the maximum allowed value
minimum long Yes The minimum long value of the entered value..