You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Möller (JIRA)" <de...@myfaces.apache.org> on 2012/08/27 12:17:07 UTC
[jira] [Created] (TRINIDAD-2302) source component of ajax request
is rendered without id (causing javascript errors)
Thomas Möller created TRINIDAD-2302:
---------------------------------------
Summary: source component of ajax request is rendered without id (causing javascript errors)
Key: TRINIDAD-2302
URL: https://issues.apache.org/jira/browse/TRINIDAD-2302
Project: MyFaces Trinidad
Issue Type: Bug
Environment: trinidad 2.0.1
Reporter: Thomas Möller
If a source component of an ajax request is defined without an id I get javascript errors that the component is not found in the dom-tree like ERR_PPR_UNKNOWNCID in myfaces or similar in mojarra. The solution is to define an id but it should work without.
--
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
[jira] [Updated] (TRINIDAD-2302) source component of ajax request
is rendered without id (causing javascript errors)
Posted by "Thomas Möller (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Möller updated TRINIDAD-2302:
------------------------------------
Status: Patch Available (was: Open)
> source component of ajax request is rendered without id (causing javascript errors)
> -----------------------------------------------------------------------------------
>
> Key: TRINIDAD-2302
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2302
> Project: MyFaces Trinidad
> Issue Type: Bug
> Environment: trinidad 2.0.1
> Reporter: Thomas Möller
> Attachments: patch.zip
>
>
> If a source component of an ajax request is defined without an id I get javascript errors that the component is not found in the dom-tree like ERR_PPR_UNKNOWNCID in myfaces or similar in mojarra. The solution is to define an id but it should work without.
--
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
[jira] [Comment Edited] (TRINIDAD-2302) source component of ajax
request is rendered without id (causing javascript errors)
Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480813#comment-13480813 ]
Robert Schoch edited comment on TRINIDAD-2302 at 10/21/12 1:50 PM:
-------------------------------------------------------------------
The patch from Thomas works only, if the element has an <f:ajax> tag.
But in other cases remains the problem which ends in an JavaScript Error.
In Mojarra is the error message "jsf.ajax.request: source not set".
These are other cases where the id's are not rendered:
https://issues.apache.org/jira/browse/TRINIDAD-2216
https://issues.apache.org/jira/browse/TRINIDAD-2259
I hope that the committers find time to integrate the patches quickly for the next release!
EDIT: Patch for all the Issues is now available.
See Issue https://issues.apache.org/jira/browse/TRINIDAD-2216
-> Attachment TRINIDAD-2216-2259-2302.patch
was (Author: robs888):
The patch from Thomas works only, if the element has an <f:ajax> tag.
But in other cases remains the problem which ends in an JavaScript Error.
In Mojarra is the error message "jsf.ajax.request: source not set".
These are other cases where the id's are not rendered:
https://issues.apache.org/jira/browse/TRINIDAD-2216
https://issues.apache.org/jira/browse/TRINIDAD-2259
I hope that the committers find time to integrate the patches quickly for the next release!
> source component of ajax request is rendered without id (causing javascript errors)
> -----------------------------------------------------------------------------------
>
> Key: TRINIDAD-2302
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2302
> Project: MyFaces Trinidad
> Issue Type: Bug
> Environment: trinidad 2.0.1
> Reporter: Thomas Möller
> Attachments: patch.zip
>
>
> If a source component of an ajax request is defined without an id I get javascript errors that the component is not found in the dom-tree like ERR_PPR_UNKNOWNCID in myfaces or similar in mojarra. The solution is to define an id but it should work without.
--
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
[jira] [Comment Edited] (TRINIDAD-2302) source component of ajax
request is rendered without id (causing javascript errors)
Posted by "Thomas Möller (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442371#comment-13442371 ]
Thomas Möller edited comment on TRINIDAD-2302 at 8/27/12 11:12 PM:
-------------------------------------------------------------------
The attached patch modifies XhtmlRenderer.shouldRenderId() so that there is an additional test if the component to render has ajax behavior. I don't know if the test is optimal but it works.
was (Author: thomoell):
This patches XhtmlRenderer.shouldRenderId() so that there is an additional test if the component to render has ajax behavior. I don't know if the test is optimal but it works.
> source component of ajax request is rendered without id (causing javascript errors)
> -----------------------------------------------------------------------------------
>
> Key: TRINIDAD-2302
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2302
> Project: MyFaces Trinidad
> Issue Type: Bug
> Environment: trinidad 2.0.1
> Reporter: Thomas Möller
> Attachments: patch.zip
>
>
> If a source component of an ajax request is defined without an id I get javascript errors that the component is not found in the dom-tree like ERR_PPR_UNKNOWNCID in myfaces or similar in mojarra. The solution is to define an id but it should work without.
--
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
[jira] [Commented] (TRINIDAD-2302) source component of ajax request
is rendered without id (causing javascript errors)
Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480813#comment-13480813 ]
Robert Schoch commented on TRINIDAD-2302:
-----------------------------------------
The patch from Thomas works only, if the element has an <f:ajax> tag.
But in other cases remains the problem which ends in an JavaScript Error.
In Mojarra is the error message "jsf.ajax.request: source not set".
These are other cases where the id's are not rendered:
https://issues.apache.org/jira/browse/TRINIDAD-2216
https://issues.apache.org/jira/browse/TRINIDAD-2259
I hope that the committers find time to integrate the patches quickly for the next release!
> source component of ajax request is rendered without id (causing javascript errors)
> -----------------------------------------------------------------------------------
>
> Key: TRINIDAD-2302
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2302
> Project: MyFaces Trinidad
> Issue Type: Bug
> Environment: trinidad 2.0.1
> Reporter: Thomas Möller
> Attachments: patch.zip
>
>
> If a source component of an ajax request is defined without an id I get javascript errors that the component is not found in the dom-tree like ERR_PPR_UNKNOWNCID in myfaces or similar in mojarra. The solution is to define an id but it should work without.
--
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