[ 
https://issues.jboss.org/browse/RF-10963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599129#comment-12599129
 ] 

Brian Leathem edited comment on RF-10963 at 10/5/11 11:31 AM:
--------------------------------------------------------------

Indeed, it seems to be a JSF-RI bug.
But the above code works:
{code}
<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:rich="http://richfaces.org/rich";
        xmlns:a4j="http://richfaces.org/a4j";>
<f:view contentType="text/html" />
<h:head>
</h:head>

<h:body>
        <h:form id="aaa">
        </h:form>
        <h:form id="bbb">
                <h:commandButton value="test">
                        <f:ajax render=":aaa"/>
                </h:commandButton>
        </h:form>
</h:body>
</html>
{code}
                
      was (Author: guilherme.moreira):
    Indeed, it seems to be a JSF-RI bug.
But the above code works:
<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:rich="http://richfaces.org/rich";
        xmlns:a4j="http://richfaces.org/a4j";>
<f:view contentType="text/html" />
<h:head>
</h:head>

<h:body>
        <h:form id="aaa">
        </h:form>
        <h:form id="bbb">
                <h:commandButton value="test">
                        <f:ajax render=":aaa"/>
                </h:commandButton>
        </h:form>
</h:body>
</html>
                  
> a4j:commandButton doesn't update the hidden javax.faces.ViewState from render 
> form
> ----------------------------------------------------------------------------------
>
>                 Key: RF-10963
>                 URL: https://issues.jboss.org/browse/RF-10963
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 4.0.0.Final
>         Environment: S.O.: Ubuntu 10.04
> Browser: Chrome
> JSF Impl: JSF 2.0.2
>            Reporter: Guilherme Moreira
>             Fix For: 4.1.0.Tracking
>
>
> A a4j:commandButton that's render another form causes this other form lost 
> it's hidden input viewState.
> Example
> {code}
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:ui="http://java.sun.com/jsf/facelets";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:rich="http://richfaces.org/rich";
>       xmlns:a4j="http://richfaces.org/a4j";>
> <f:view contentType="text/html" />
> <h:head>
> </h:head>
> <h:body>
>       <h:form id="aaa">
>       </h:form>
>       <h:form id="bbb">
>               <a4j:commandButton render=":aaa"/>
>       </h:form>
> </h:body>
> </html>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
richfaces-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to