bonjour tout le monde,j'ai un taglib exception que j'ai définie:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:excep="http://www.ingenius.ma/excep">
j'ai la page de login suivant:

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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!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:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:excep="http://www.ingenius.ma/excep">
<head>
<title><h:outputText value="#{global.titre}" /><h:outputText
	value="#{auth.titre}" /></title>
<link rel="shortcut icon"
	href="${facesContext.externalContext.requestContextPath}/images/logo.ico"
	type="image/x-icon" />

</head>

<body>


<br />



<p>&nbsp;</p>


<h:form>

	<excep:exception />

	<table class="dr-stglpnl-m rich-stglpnl-marker" align="center"
		width="280" border="0" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th colspan="2" nowrap="nowrap">Login</th>
			</tr>
		</thead>
		<tbody>

			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="102" nowrap="nowrap">
				<h:outputText id="gg"
					value="#{auth['nomUtilisateur']}" /></td>
				<td width="208">
				<h:inputText
				    id="login"
					value="#{loginBean.editingResource.login}" 
					/>
					</td>

			</tr>
			<tr>

				<td width="102" nowrap="nowrap"><h:outputLabel
					value="#{auth['pwd']}" /></td>
				<td width="208"><h:inputSecret
					value="#{loginBean.editingResource.password}" /></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
			</tr>
			<tr>

				<td height="43" colspan="2" align="center"><h:commandButton
					styleClass="button_def"
					action="#{loginBean.authentificationAction}"
					value="#{global['btConnexion']}" /></td>
			</tr>
		</tbody>
	</table>
</h:form>
</body>
</html>
dans la partie rouge de cette page il sont afficher les erreurs de validation traiter dans les beans java.
je fais donc ceci exemple:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
//mot de passe invalide
throw new BaseException("Mot de passe invalide !!");
mon problème est que je veux que cette validation soit coter client c'est a dire je fais a mes attributs .
comment personnaliser cette exception :on affichons un message définie dans messages.proprties.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
<excep:exception />