bonjour
j'ai une page jsp pour faire l'authentification d'un utilisateur
voici la partie de l'authentification de ma page
j'ai un bouton submit qui me permet de faire l'authetification et qui retourne un String (OUI ou NON)
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 id="beanValidatorForm"> <rich:panel style="border:0;width:60%;text-align:center"> <f:facet name="header"> <h:outputText value="Veuiller Vous Authentifier " id="progress"/> </f:facet> <h:panelGrid style="align:center" columns="3"> <h:outputText value="Name:" /> <h:inputText value="#{theuser.userId}" id="name"> <rich:beanValidator summary="Invalid name"/> </h:inputText> <rich:message for="name" /> <h:outputText value="Password:" /> <h:inputSecret value="#{theuser.passwd}" id="passwd"/> <f:facet name="footer"> <a4j:commandButton id="submit" reRender="modalpanel" value="Submit" action="#{theuser.authentification}"/> </f:facet> </h:panelGrid> </rich:panel> </h:form>
mon probléme est que je veut si la valeur retourner est non un <rich:modalpanel> s'affiche en indiquant que le mot de passe ou le nom sont erronés si non il ne s'affiche pas
merci
Partager