Project Documentation

Summary

Tag name: <tr:validateDoubleRange>

type: org.apache.myfaces.trinidad.DoubleRange

Validate that the value entered is within a given range.

Code 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
disabledbooleanYes Default Value: false

Whether the converter should be disabled, default to false.
maximumdoubleYes The maximum double value of the entered value.
messageDetailMaximumStringYes

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
messageDetailMinimumStringYes

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
messageDetailNotInRangeStringYes

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
minimumdoubleYes The minimum double value of the entered value..