javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1192

setProperties for validator behaviour is not there for mojarra-2.1.1 ,

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1 Rev a
    • Fix Version/s: None
    • Component/s: Validation/Conversion
    • Labels:
      None

      Description

      issue reference https://issues.apache.org/jira/browse/MYFACES-1892

      As shown in this dtd:
      http://java.sun.com/dtd/web-facesconfig_1_1.dtd

      the validator element in a faces-config.xml file should support nested attribute and property elements:

      <validator>
      <validator-id>xyValidtor</validator-name>
      <validator-class>com.xy.XyValidator</validator-class>
      <property>
      <property-name>length</property-name>
      <property-class>java.lang.Integer</property>
      <default-value>40</default-value>
      </property>
      </validator>

      However this appears to never have been implemented in either 1.1.x or 1.2.x of core; only validator-id and validator-class are supported. Note that the equivalent feature exists for converters, and does appear to have been implemented.

      What is the reason reference implementation is not having this behaviour?

        Activity

        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

          People

          • Assignee:
            Unassigned
            Reporter:
            dorarajappan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: