Bonjour,

Voici mon 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
 
<h:form>
	<rich:panelBar height="400" width="500" selectedPanel="#{boConnection.selectedInfoObj.title}">
		<c:forEach items="#{boConnection.selectedDomain.subDomains}" var="subDomain">
			<rich:panelBarItem label="#{subDomain.title}" name="#{subDomain.title}">
				<rich:tree switchType="client" value="#{boConnection.treeIInfoObjects" var="infoDoc" nodeFace="#{infoDoc.kind}">
					<rich:treeNode type="Webi" icon="../Images/webi.png" iconLeaf="../Images/webi.png">
						<h:commandLink value="#{infoDoc.title}" action="iview">
							<f:setPropertyActionListener value="#{infoDoc.ID}" target="#{boDocument.docID}"/>
							<f:setPropertyActionListener value="" target="#{boDocument.reportName}"/>
						</h:commandLink>
					</rich:treeNode>
					<rich:treeNode type="Folder" icon="../Images/folder.gif" iconLeaf="../Images/folder.gif">
						<h:outputText value="#{infoDoc.title}"/>
					</rich:treeNode>
				</rich:tree>
			</rich:panelBarItem>
		</c:forEach>
	</rich:panelBar>
</h:form>
Comment puis-je passer la valeur du "subDomain" en paramètre de mon rich:tree?

J'essaie de faire ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
 <rich:tree switchType="client" value="#{boConnection.treeIInfoObjects[subDomain]" var="infoDoc" nodeFace="#{infoDoc.kind}">
Le serveur tomcat me renvoie l'erreur suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
exception
 
javax.servlet.ServletException: /template.xhtml @60,169 value="#{boConnection.treeIInfoObjects[subDomain]}": Property 'treeIInfoObjects' not found on type bo.BoConnection
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
	org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
	org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
	org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
	org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

D'avance merci,