previous | index | next

Defining Tag Attributes for Value Expressions

Recall the use of the spinner tag:
   <corejsf:spinner value="#{cardExpirationDate.year}"
       id="yearSpinner" minimum="1900" maximum="2100" size="5"/>
   <h:message for="yearSpinner"/>
Here is how the minimum attribute is defined in the TLD file:
   <attribute>
      <description>The spinner minimum value</description>
      <name>minimum</name>
      <deferred-value>
         <type>int</type>
      </deferred-value>
   </attribute>
The deferred-value child element indicates that the attribute value can be a constant string or one containing a #{...} expression that represents an integer.

previous | index | next