Jay Sartoris created MYFACES-3974:
-------------------------------------

             Summary: Ajax delay attribute with a value of  "none" does not work
                 Key: MYFACES-3974
                 URL: https://issues.apache.org/jira/browse/MYFACES-3974
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-344
    Affects Versions: 2.2.7
            Reporter: Jay Sartoris
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to