[
https://issues.jboss.org/browse/RF-12566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741293#comment-12741293
]
Martin Maier commented on RF-12566:
-----------------------------------
The problem is related to ajax-rendered messages. If I set
ajax-rendered="false", the problem does not occurs. Likewise, if I change
<rich:message> to <h:message>.
> Calendar: Client-Error on month change because of rendering richMessages that
> are not in DOM
> --------------------------------------------------------------------------------------------
>
> Key: RF-12566
> URL: https://issues.jboss.org/browse/RF-12566
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.2.3.Final
> Environment: Java 7.0.u9, Tomcat 7.0.32, MyFaces 2.1.8, Firefox16/IE9
> Reporter: Martin Maier
> Labels: myfaces
> Fix For: 5-Tracking
>
> Attachments: error.jpg, firebug.JPG, rf12566.war, RF12566.zip
>
>
> The Calendar component causes an client error after receiving the response of
> a Ajax request after changing a month or year.
> The error occurs only when there are invisible (not rendered) rich:messages
> that exists in the view (component tree) but are not rendered to the DOM.
> While processing the response the RichMessage-Object can not be process
> because the corresponing DOM element is missing (because it was not rendered).
> On other component limitRender="true" would help with this problem but this
> attribute is not available for rich:calendar.
> In the example webapp that I attached the Ajax response looks like this:
> {code}
> <?xml version="1.0" encoding="utf-8"?>
> <partial-response>
> <changes>
> <update id="form:messages1"><![CDATA[<span class="rf-msg "
> id="form:messages1"></span>]]></update>
> <update id="form:messages2"><![CDATA[<span class="rf-msg "
> id="form:messages2"></span>]]></update>
> <update
> id="javax.faces.ViewState"><![CDATA[cJRAwt92Bj7eWwztx2b2ZHGkKaccSpVwhIL9tMJ6MhLaVhQjAv7W2YDSQxvk2tqrnjKEEZbDkGQKfvdEKG8UHyQ4YDvS5+bpD7hudnPksj9CzncN83fXTZhyfIPpLQSQqk80lQ==]]></update>
> <extension id="org.richfaces.extension">
> <complete>
> new
> RichFaces.ui.Message("form:messages1",{"forComponentId":"form:cal1","showSummary":false,"showDetail":true});
> new
> RichFaces.ui.Message("form:messages2",{"forComponentId":"form:cal2","showSummary":false,"showDetail":true});</complete>
> <componentData>{"form:cal1":null}
> </componentData>
> </extension>
> </changes>
> </partial-response>
> {code}
> However, 'form:messages2' was not found in the DOM of the page and causes a
> client error. This breaks the functionality of the component because it can
> not update its <componentData> (e.g. data of the datamodel).
--
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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues