salut tout le monde

j suis nouveau dans le monde de JSF
je veux que l message d'erreur s'affiche devant la ligne de matricule
et je sais pas s'il ya une autre maniére apart panelGrid ou quoi

merci d'avance.

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
 
 
<h:panelGrid columns="2">
				<h:outputText value="Matricule :" />
				<h:inputText id="matricule" value="#{monbean.client.matricule}" required="true" />
 
 
				<h:message for="matricule" style="color:red" />
 
 
				<h:outputText value="Nom :" />
				<h:inputText id="nom" value="#{monbean.client.nom}" />
 
				<h:outputText value="Prenom :" />
				<h:inputText id="prenom" value="#{monbean.client.prenom}" />
 
				<h:outputText value="Pays :" />
				<h:inputText id="pays" value="#{monbean.client.pays}" />
 
				<h:outputText value="Sexe :" />
				<h:inputText id="sexe" value="#{monbean.client.sexe}" />
 
				<h:commandButton value="Valider" action="#{monbean.ajouterClient()}" />
			</h:panelGrid>