You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Created) (JIRA)" <de...@myfaces.apache.org> on 2011/09/30 17:48:45 UTC
[jira] [Created] (MYFACES-3340) h:commandButton with f:ajax
behavior and f:param renders submit script
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
[jira] [Resolved] (MYFACES-3340) h:commandButton with f:ajax
behavior and f:param renders submit script
Posted by "Leonardo Uribe (Resolved) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-3340.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.4
2.0.10
> 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
> Fix For: 2.0.10, 2.1.4
>
>
> 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