[richfaces-issues] [JBoss JIRA] Resolved: (RF-4543) calendar loses its value in an Ajax request inside an ajax:include but outside the updated region

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Fri Oct 24 09:08:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Shaikovsky resolved RF-4543.
---------------------------------

    Resolution: Done


our include - ajaxRendered by default in order to make simple wizards creation simplier.

So in your case where the requests inside should not always update the wizard - just set ajaxRendered="false" and manually reRender include's parent if you need navigation inside.

> 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
>            Assignee: Ilya Shaikovsky
>
> 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

        



More information about the richfaces-issues mailing list