Jean-Francois Leveque

Recuperation des "affichages" d'erreur individiels v2 sans garantie

...@@ -41,18 +41,22 @@ ...@@ -41,18 +41,22 @@
41 <tr> 41 <tr>
42 <td><h:outputLabel for="username">Identifiant *</h:outputLabel></td> 42 <td><h:outputLabel for="username">Identifiant *</h:outputLabel></td>
43 <td><h:inputText id="username" value="#{updateUserBean.username}" required="true" style="width: 175px;" maxlength="50"/></td> 43 <td><h:inputText id="username" value="#{updateUserBean.username}" required="true" style="width: 175px;" maxlength="50"/></td>
44 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="username"/></td>
44 </tr> 45 </tr>
45 <tr> 46 <tr>
46 <td><h:outputLabel for="firstname">Prnom *</h:outputLabel></td> 47 <td><h:outputLabel for="firstname">Prnom *</h:outputLabel></td>
47 <td><h:inputText id="firstname" value="#{updateUserBean.firstName}" required="true" style="width: 175px;" maxlength="50"/></td> 48 <td><h:inputText id="firstname" value="#{updateUserBean.firstName}" required="true" style="width: 175px;" maxlength="50"/></td>
49 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="firstname"/></td>
48 </tr> 50 </tr>
49 <tr> 51 <tr>
50 <td><h:outputLabel for="lastname">Nom *</h:outputLabel></td> 52 <td><h:outputLabel for="lastname">Nom *</h:outputLabel></td>
51 <td><h:inputText id="lastname" value="#{updateUserBean.lastName}" required="true" style="width: 175px;" maxlength="50"/></td> 53 <td><h:inputText id="lastname" value="#{updateUserBean.lastName}" required="true" style="width: 175px;" maxlength="50"/></td>
54 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="lastname"/></td>
52 </tr> 55 </tr>
53 <tr> 56 <tr>
54 <td><h:outputLabel for="nickname">Pseudonyme</h:outputLabel></td> 57 <td><h:outputLabel for="nickname">Pseudonyme</h:outputLabel></td>
55 <td><h:inputText id="nickname" value="#{updateUserBean.nickName}" style="width: 175px;" maxlength="50"/></td> 58 <td><h:inputText id="nickname" value="#{updateUserBean.nickName}" style="width: 175px;" maxlength="50"/></td>
59 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="nickname"/></td>
56 </tr> 60 </tr>
57 <tr> 61 <tr>
58 <td><h:outputLabel for="mask">Affichage public du nom *</h:outputLabel></td> 62 <td><h:outputLabel for="mask">Affichage public du nom *</h:outputLabel></td>
...@@ -61,18 +65,22 @@ ...@@ -61,18 +65,22 @@
61 <f:selectItems value="#{updateUserBean.allDisplayNameMasks}"/> 65 <f:selectItems value="#{updateUserBean.allDisplayNameMasks}"/>
62 </h:selectOneMenu> 66 </h:selectOneMenu>
63 </td> 67 </td>
68 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="mask"/></td>
64 </tr> 69 </tr>
65 <tr> 70 <tr>
66 <td><h:outputLabel for="email">Adresse email *</h:outputLabel></td> 71 <td><h:outputLabel for="email">Adresse email *</h:outputLabel></td>
67 <td><h:inputText id="email" value="#{updateUserBean.email}" required="true" style="width: 175px;" maxlength="100"><!--<f:validator validatorId="validateEmail"/>--></h:inputText></td> 72 <td><h:inputText id="email" value="#{updateUserBean.email}" required="true" style="width: 175px;" maxlength="100"><!--<f:validator validatorId="validateEmail"/>--></h:inputText></td>
73 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="email"/></td>
68 </tr> 74 </tr>
69 <tr> 75 <tr>
70 <td><h:outputLabel for="anonymous">Profil Anonyme ?</h:outputLabel></td> 76 <td><h:outputLabel for="anonymous">Profil Anonyme ?</h:outputLabel></td>
71 <td><h:selectBooleanCheckbox id="anonymous" value="#{updateUserBean.anonymous}"/></td> 77 <td><h:selectBooleanCheckbox id="anonymous" value="#{updateUserBean.anonymous}"/></td>
78 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="anonymous"/></td>
72 </tr> 79 </tr>
73 <tr> 80 <tr>
74 <td><h:outputLabel for="password">Mot de passe *</h:outputLabel></td> 81 <td><h:outputLabel for="password">Mot de passe *</h:outputLabel></td>
75 <td><h:inputSecret id="password" redisplay="true" value="#{updateUserBean.password}" required="true" style="width: 175px;" maxlength="50"/></td> 82 <td><h:inputSecret id="password" redisplay="true" value="#{updateUserBean.password}" required="true" style="width: 175px;" maxlength="50"/></td>
83 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="password"/></td>
76 </tr> 84 </tr>
77 <tr> 85 <tr>
78 <td><h:outputLabel for="roles">Rles</h:outputLabel></td> 86 <td><h:outputLabel for="roles">Rles</h:outputLabel></td>
...@@ -81,6 +89,7 @@ ...@@ -81,6 +89,7 @@
81 <f:selectItems value="#{updateUserBean.availableUserRoles}" var="role" itemLabel="#{role.rolename}" /> 89 <f:selectItems value="#{updateUserBean.availableUserRoles}" var="role" itemLabel="#{role.rolename}" />
82 </h:selectManyCheckbox> 90 </h:selectManyCheckbox>
83 </td> 91 </td>
92 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="roles"/></td>
84 </tr> 93 </tr>
85 <tr> 94 <tr>
86 <td valign="top"> 95 <td valign="top">
...@@ -113,14 +122,17 @@ ...@@ -113,14 +122,17 @@
113 <tr> 122 <tr>
114 <td><h:outputLabel for="criticProvider">Archives de critiques ?</h:outputLabel></td> 123 <td><h:outputLabel for="criticProvider">Archives de critiques ?</h:outputLabel></td>
115 <td><h:selectBooleanCheckbox id="criticProvider" value="#{updateUserBean.criticProvider}"/></td> 124 <td><h:selectBooleanCheckbox id="criticProvider" value="#{updateUserBean.criticProvider}"/></td>
125 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="criticProvider"/></td>
116 </tr> 126 </tr>
117 <tr> 127 <tr>
118 <td><h:outputLabel for="visible">Visible ?</h:outputLabel></td> 128 <td><h:outputLabel for="visible">Visible ?</h:outputLabel></td>
119 <td><h:selectBooleanCheckbox id="visible" value="#{updateUserBean.visible}"/></td> 129 <td><h:selectBooleanCheckbox id="visible" value="#{updateUserBean.visible}"/></td>
130 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="visible"/></td>
120 </tr> 131 </tr>
121 <tr> 132 <tr>
122 <td><h:outputLabel for="activated">Activ ?</h:outputLabel></td> 133 <td><h:outputLabel for="activated">Activ ?</h:outputLabel></td>
123 <td><h:selectBooleanCheckbox id="activated" value="#{updateUserBean.activated}"/></td> 134 <td><h:selectBooleanCheckbox id="activated" value="#{updateUserBean.activated}"/></td>
135 + <td><h:message errorClass="errorMsg" infoClass="infoMsg" for="activated"/></td>
124 </tr> 136 </tr>
125 <tr> 137 <tr>
126 <td colspan="3" class="taCenter"> 138 <td colspan="3" class="taCenter">
......