calendar loses its value in an Ajax request inside an ajax:include but outside 
the updated region
-------------------------------------------------------------------------------------------------

                 Key: RF-4543
                 URL: https://jira.jboss.org/jira/browse/RF-4543
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.2
         Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_09-b02-FCS, 
RichFaces 3.2.2
            Reporter: Aimar Tellitu


rich:calendar loses its value in an Ajax request if it is inside an 
ajax:include, but outside the updated region. This problem is not present in 
previous versions of RichFaces like the 3.2.1, 3.2.0, ...

Here is a very simple example. First, you choose any date in the rich:calendar, 
and then you click the selectBooleanCheckbox.

The main page, home.xhtml:

<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:a4j="http://richfaces.org/a4j";>
<f:view>
        <head></head>
        <body>
                <h:outputText value="with a4j:include"/>
                <a4j:include id="homepage" viewId="/homepage.xhtml" />
        </body>
</f:view>
</html>

And the included template, homepage.xhtml:

<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:a4j="http://richfaces.org/a4j";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:rich="http://richfaces.org/rich";>
<body>
<ui:composition>

        <h:form>
                <rich:calendar value="#{test.date}" popup="true" />
                <a4j:region>
                        <h:selectBooleanCheckbox value="#{test.check}">
                                <a4j:support event="onclick"/>
                        </h:selectBooleanCheckbox>
                </a4j:region>
        </h:form>
        
</ui:composition>
</body></html>

This problem is only happening if the rich:calendar is inside an <a4j:include> 
and outside the region that is updated. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
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

Reply via email to