[
https://issues.apache.org/jira/browse/MYFACES-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644136#comment-17644136
]
Volodymyr Siedlecki commented on MYFACES-4040:
----------------------------------------------
Some more information
:https://jakarta.ee/specifications/faces/4.0/jsdoc/faces.ajax.html
options param - "object containing parameters to include in the request"
JavaScript: submitForm params code:
https://github.com/apache/myfaces/blob/89c747e85615e3f33265e664c8361789f38ea7db/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_OamSubmit.js#L106
Rendered MyFaces HTML:
{code:java}
<a href="#" onclick="faces.util.chain(this,
event,function(event){myfaces.ab(this,event,'action','form:input','form:output',{'execute':'ParamValue'})});
return false;" id="form:link" name="form:link">submit</a>
{code}
Rendered Mojarra HTML:
{code:java}
<a id="form:link" href="#"
onclick="mojarra.ab(this,event,'action','form:input','form:output',{'params':{'execute':'ParamValue'}});return
false">submit</a>
{code}
> <f:param> name conflicts with <f:ajax> attributes
> -------------------------------------------------
>
> Key: MYFACES-4040
> URL: https://issues.apache.org/jira/browse/MYFACES-4040
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 2.2.9
> Reporter: Bauke Scholtz
> Assignee: Leonardo Uribe
> Priority: Major
> Attachments: test-faces23-ajax.war
>
>
> https://java.net/jira/browse/JAVASERVERFACES-4115 also applies to MyFaces.
> {code}
> <h:form>
> <h:inputText id="foo" />
> <h:commandLink value="test">
> <f:ajax execute="foo" />
> <f:param name="execute" value="bar" />
> </h:commandLink>
> </h:form>
> {code}
> In MyFaces, the actual behavior is equal to <f:ajax execute="bar"> and
> request.getParameter("execute") returns null.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)