Bonjour a tous
J'ai un probleme avec un <ui:include> dynamique et l'execution de ajax.

Je m'explique: J'ai un richDataTable qui contient une liste d'element, sur chaque ligne, il ya editer et supprimer comme dans l'exemple de :Richface Showcase.
Quand je renseigne la valeur de ui:include directement c'est a dire je le fixe, si je clique sur éditer, il recupere l'id de l'element normalement ce qui veut dire que le <f:setPropertyListener> a renseigne le bean. pour le casdu dynamique, le bean n'est pas renseigne.
Voici le code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<ui:define name="mainbar">
 		<a4j:status onstart="#{rich:component('statPane')}.show()" onstop="#{rich:component('statPane')}.hide()" />
 		<h:form id="formSap">
 			<rich:popupPanel id="statPane" autosized="true">
	            <h:graphicImage name="ai.gif" alt="chargement" library="images"/>
	            Please wait...
	        </rich:popupPanel>
	         <rich:popupPanel id="confirmPane" autosized="true">
	            Are you sure you want to delete the row?
	            <a4j:commandButton value="Cancel" onclick="#{rich:component('confirmPane')}.hide(); return false;" />
	            <a4j:commandButton value="Delete" onclick="remove(); return false;" />
	        </rich:popupPanel> 
 
		 	<a4j:outputPanel ajaxRendered="true"  >
		 		<ui:include src="#{panelMenuBean.current}" />
		 		<!--ui:include src="periode/list.xhtml"  />
		 	</a4j:outputPanel>
 
		</h:form>
	</ui:define>
et la feuille periode/list.xhtml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
<ui:composition>
          <a4j:outputPanel  >
  	 			<rich:dataTable id="periodeList" value="#{periodeBean.listPeriode}" var="periodeCourant" iterationStatusVar="it" rows="15" >
	 			 	<rich:column>
		                <f:facet name="header"><h:outputText value="#" /></f:facet>
		                <h:outputText value="#{it.index}" />
		            </rich:column>
	            	<f:facet name="header">
						<h:outputText value="Periode" />	
					</f:facet>
					<rich:column id="libelle">
						<f:facet name="header">
							<h:outputText value="Année " />
						</f:facet>
						<h:outputText value="#{periodeCourant.annee}" />						 
					</rich:column>
					<rich:column id="periodicite">
						<f:facet name="header">
							<h:outputText value="periodicite " />
						</f:facet>
						<h:outputText value="#{periodeCourant.periodicite}" />
					</rich:column>
					<rich:column>
		                <a4j:commandLink styleClass="no-decor" execute="@this" render="@none" oncomplete="#{rich:component('confirmPane')}.show()">
		                    <h:graphicImage name="icons/delete.gif" alt="delete" library="images" />
		                    <a4j:param value="#{it.index}" assignTo="#{periodeBean.indexCourant}" />
		                </a4j:commandLink>
		                <a4j:commandLink styleClass="no-decor" render="editGrid" execute="@this" oncomplete="#{rich:component('editPane')}.show()">
		                    <h:graphicImage name="icons/edit.gif" alt="edit" library="images"/>
		                    <a4j:param value="#{it.index}" assignTo="#{periodeBean.indexCourant}" />
		                    <f:setPropertyActionListener target="#{periodeBean.periodeCourant}" value="#{periodeCourant}" />
 
		                </a4j:commandLink>
	            	</rich:column>
			        <f:facet name="footer"><rich:dataScroller id="ds" /></f:facet>
			</rich:dataTable>
 
			<a4j:jsFunction name="remove" action="#{periodeBean.remove}"  render="periodeList" execute="form_list" oncomplete="#{rich:component('confirmPane')}.hide();" />
 
        	 <rich:popupPanel header="Edit Car Details" id="editPane" domElementAttachment="parent" width="400" height="170">
        	 		<ui:include src="edit.xhtml" />
        	 		<h:outputText value="#{periodeBean.indexCourant}"></h:outputText>
        	 </rich:popupPanel>
        	 </a4j:outputPanel>
</ui:composition>
Quelqu'un pour m'aider svp?