[
https://issues.apache.org/jira/browse/MYFACES-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157490#comment-13157490
]
Werner Punz edited comment on MYFACES-3408 at 11/26/11 2:09 PM:
----------------------------------------------------------------
Ok it seems to be a refactoring error, the complete data should have a response
text and response xml already present if the complete has been done, otherwise
the richfaces init code is omitted, seems like we introduced this bug in the
latest refactoring which cleaned up the xhr code the data there is transferred
to late.
I will fix it asap and will add testcases which test accordingly that the data
passed down the complete event has the responseText and responseXML set.
My apologies for the hazzle, the refactoring was unfortunately necessary to
make the code more maintainable.
was (Author: werpu):
Ok it seems to be a refactoring error, the complete data should have a
response text and response xml already present if the complete has been done,
otherwise the richfaces init code is omitted, seems like we introduced this bug
in the latest refactoring.
I will fix it asap.
> ajax behaviour has changed within myfaces-2.1.4
> -----------------------------------------------
>
> Key: MYFACES-3408
> URL: https://issues.apache.org/jira/browse/MYFACES-3408
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.1.4
> Reporter: Rene O
> Attachments: jsf2testcase.war
>
>
> Example site:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:ui="http://java.sun.com/jsf/facelets">
>
> <h:head>
> <title>JSF Test</title>
> </h:head>
> <h:body>
> <h:form id="testForm">
> <h:commandButton id="buttonId" value="click me">
> <f:ajax event="click" execute="@this"
> render="textId" />
> </h:commandButton>
> <h:outputText id="textId" value="Test" />
> </h:form>
> </h:body>
> </html>
> If you click the button, the following happens (you can see this if you use
> the richfaces a4j:log component):
> myfaces-2.1.4:
> info [20:19:52.375]: Received 'begin' event from <input id=testForm:buttonId
> ...>
> info [20:19:52.421]: Received 'beforedomupdate' event from <input
> id=testForm:buttonId ...>
> info [20:19:52.453]: Received 'success' event from <input
> id=testForm:buttonId ...>
> info [20:19:52.453]: Received 'complete' event from <input
> id=testForm:buttonId ...>
> but with myfaces-2.1.3 and mojarra-2.1.4:
> info [20:23:57.671]: Received 'begin' event from <input id=testForm:buttonId
> ...>
> info [20:23:57.828]: Received 'beforedomupdate' event from <input
> id=testForm:buttonId ...>
> info [20:23:57.843]: Listing content of response changes element:
> Element update for id=testForm:textId
> <update id="testForm:textId"><![CDATA[<span
> id="testForm:textId">Test</span>]]></update>
> Element update for id=javax.faces.ViewState
> <update
> id="javax.faces.ViewState"><![CDATA[j0LjX8e0GxCO+29xvrdy2+8Ioe6Fl0/0rxQEZOOH3gbOawFqNemG/u0qOkv8g9mdmT4e8Zt3Qd+VmBXTz7ibVDKOj1kPnFKT+11GTlQ4BRvtRAGk9ioKZSuzhTbGgPwzW+4BMw==]]></update>
> You see, that now with myfaces-2.1.4 something goes wrong...
> This new behaviour causes some problems within richfaces. For example the
> rich:tabPanel component doesn't work correct now, if used in ajax mode.
--
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