Bonjour,

J'essaye de faire fonctionner ça :
template.jsp:
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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>
			<ui:insert name="title">Default Title</ui:insert>
		</title>
	</head>
	<body>
 
		<f:view>
		<ui:insert name="body"><h:outputText value="defaut"/></ui:insert>
		</f:view>
	</body>
</html>
test.jsp:
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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<body>
		<ui:composition template="/template.jsp">
 
 
			<ui:define name="body">
				 <h:outputText value="#{login._user}"/>
			</ui:define>	
		</ui:composition>
 
	</body>
</html>
et voici le resultat(source de la page tt.jsp):
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Default Title
		</title>
	</head>
	<body>util.dataObjet.user.User@158cc6
	<!-- MYFACES JAVASCRIPT -->

</body>
</html>
login._user = util.dataObjet.user.User@158cc6 .... bizarre !!! alors qu'il y a "toto" !
Je ne comprends pas pourquoi il ne met pas la valeur de la propriété ???

Merci d'avance.