Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4050

Validators not invoked for empty selectManyCheckbox components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.10
    • 2.0.25, 2.1.19, 2.2.11
    • None
    • None
    • Tomcat, WebSphere Liberty

    Description

      Custom validators are not invoked for selectManyCheckbox component, if the component has no selections made; this can be an issue if we want to handle the null/empty case in a validator. The following context params address this case:

      <context-param>
      <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
      <param-value>true</param-value>
      </context-param>

      <context-param>
      <param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>
      <param-value>true</param-value>
      </context-param>

      But these params do not affect the behavior here. Based on my understanding of the spec, it seems that this behavior should be changed.

      Attachments

        1. MYFACES-4050.patch
          1 kB
          Bill Lucy
        2. MYFACES-4050.patch
          2 kB
          Bill Lucy

        Activity

          People

            wtlucy Bill Lucy
            wtlucy Bill Lucy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: