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

Ajax delay attribute with a value of "none" does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.7
    • 2.2.8
    • JSR-344
    • None

    Description

      In JSF 2.2 there "delay" attribute of the f:ajax component should accept a value of "none".

      The tag library documentation here:
      https://docs.oracle.com/javaee/7/javaserver-faces-2-2/vdldocs-facelets/f/ajax.html

      states that the delay attributes can:
      "...If this option is not specified, or if the value of delay is the literal string 'none' without the quotes, no delay is used. "

      However, in MyFaces 2.2.7 this is not working. It results in the ajax action to not be called at all.

      This same test works with Mojarra 2.2.10.

      I will upload a simple test case to demonstrate this issue.
      Simply access:
      localhost:<port>/AjaxDelayTest/ajaxDelayNone.jsf

      Also, a working scenario with a value of 400 is here:
      localhost:<port>/AjaxDelayTest/ajaxDelay400.jsf

      And a working scenario with a value of zero ("0") is here:
      localhost:<port>/AjaxDelayTest/ajaxDelayZero.jsf

      In these tests, Enter "joh" in the field. You should see the results displayed below but they are not in the "none" test. Also, you do not see three calls in the logs to the backing bean.

      I would expect that using either "none" or "0" as the value would give you the same behavior.

      Attachments

        1. AjaxDelayTest.war
          5 kB
          Jay Sartoris

        Activity

          People

            lu4242 Leonardo Uribe
            sartoris Jay Sartoris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: