Foundation
Project Documentation

Summary

Tag name: <tr:validateDoubleRange>

type: org.apache.myfaces.trinidad.DoubleRange

Validate that the value entered is within a given range.

Example(s):

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

Attributes

Name Type Supports EL? Description
maximum double Yes The maximum double 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 double Yes The minimum double value of the entered value..