[
https://issues.apache.org/jira/browse/TRINIDAD-2216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480824#comment-13480824
]
Robert Schoch edited comment on TRINIDAD-2216 at 10/20/12 8:46 PM:
-------------------------------------------------------------------
The renderer creates for a tr:commandButton without explicit id attribute this:
<button class="af_commandButton"
onclick="TrPage._autoSubmit('TestForm','j_idt1',event,1);return false;"
type="button">PPR Test</button>
You can see, that the onclick handler contains an TrPage._autoSubmit() call
with a autogenerated source id as argument. This is the reason why the source
is part of the payload.
But the <button> tag has no rended id attribute, so that it can never be found
by the script, which searches the element in the DOM tree. This causes a null
to be passed as source parameter in the jsf.ajax.request call and finally ends
as error like "jsf.ajax.request: source not set" in Mojarra.
EDIT: same problem here:
https://issues.apache.org/jira/browse/TRINIDAD-2259
https://issues.apache.org/jira/browse/TRINIDAD-2302
was (Author: robs888):
The renderer creates for a tr:commandButton without explicit id attribute
this:
<button class="af_commandButton"
onclick="TrPage._autoSubmit('TestForm','j_idt1',event,1);return false;"
type="button">PPR Test</button>
You can see, that the onclick handler contains an TrPage._autoSubmit() call
with a autogenerated source id as argument. This is the reason why the source
is part of the payload.
But the <button> tag has no rended id attribute, so that it can never be found
by the script, which searches the element in the DOM tree. This causes a null
to be passed as source parameter in the jsf.ajax.request call and finally ends
as error like "jsf.ajax.request: source not set" in Mojarra.
> The partialSubmit does not work with JSF 2 RI
> ---------------------------------------------
>
> Key: TRINIDAD-2216
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2216
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-core
> Environment: Mojarra 2.1.6 (SNAPSHOT 20111206)
> Glassfish 3.1.1
> Trinidad 2.0.0
> Reporter: Tomas Havelka
>
> Trinidad's partialSubmit does not work because the source parameter passed in
> the jsf.ajax.request call is null. See XMLRequest.js on the line 358. The
> source is part of the payload but is not assigned to the source parameter
> itself. It causes the RI implementation of jsf.ajax.request throws an error
> because of this code in it:
> if (typeof source === 'undefined' || source === null) {
> throw new Error("jsf.ajax.request: source not set");
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira