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

Can't use expression for validator attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • 2.1.7
    • None
    • General
    • None
    • validator ajax

    Description

      Attaching a test case that shows a problem when using an expression for an attribute in a validator. We have markup that looks like this:

      <h:inputText id="ajaxMy"
      value="#

      {testBean.myNumber}

      ">
      <f:validateLongRange minimum="1"
      maximum="#

      {testBean.maxValue}

      "/>
      <f:ajax execute="@this"
      render="@form"/>
      </h:inputText>

      When the value of the maximum attribute is modified via Ajax from another input field, the value of the bean is properly set but the validator doesn't resolve appear to resolve the expression at the right time and the result is that validation occurs against the "old" values.

      Attachments

        1. validator.zip
          9 kB
          Deryk Sinotte

        Activity

          People

            Unassigned Unassigned
            dmsinotte Deryk Sinotte
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: