myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Created) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3340) h:commandButton with f:ajax behavior and f:param renders submit script
Date Fri, 30 Sep 2011 15:48:45 GMT
h:commandButton with f:ajax behavior and f:param renders submit script
----------------------------------------------------------------------

                 Key: MYFACES-3340
                 URL: https://issues.apache.org/jira/browse/MYFACES-3340
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


Trying this test case:

        <h:commandButton id="submit" value="Submit">
            <f:param name="someparam" value="123"/>
            <f:ajax .... />
        </h:commandButton>

The final link appends the submit script, but it should not. In theory the submit script should
be added but in practice there is no clean way to detect if a "submit" behavior has been added
to the component, so to keep things simple, if the button is submit type, it is responsibility
of the developer to add a client behavior that submit the form, for example using a f:ajax
tag.
Otherwise, there will be a situation where a full submit could be trigger after an ajax operation.
Note we still need to append two scripts if necessary: autoscroll and clearhidden fields,
because this code is called for a submit button.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message