Bonjour,
J'ai configurer Jaas avec glassfish, jsf 2.0 dans mon projet.
Dans un premier lieu j'ai utiliser les balise de base de jsf, tous marche a merveille mais quand j'ai voulu modifier mon formulaire d'authentification pour utiliser primefaces tous semble marché aussi sauf que lors d'une authentification réussite la page de destination ne se charge pas (l'authentification et meme l’autorisation s'effectue sans problème mais la navigation c'est elle qui se plante).
voici le code de la page d'authentification qui marche a 100% :
et voici le code avec primefaces qui se plante dans la navigation :Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <h:form> <center> <h:messages errorClass="errorMessage" infoClass="infoMessage" warnClass="warnMessage"></h:messages> <h:panelGrid columns="2"> <h:outputText value="Username : "></h:outputText> <h:inputText id="username" value="#{loginBean.login}"></h:inputText> <h:outputText value="Password : "></h:outputText> <h:inputSecret id="password" value="#{loginBean.password}"></h:inputSecret> <h:commandButton value="Submit" action="#{loginBean.loginn}" type="submit"></h:commandButton> <h:commandButton value="Clear" type="reset"></h:commandButton> <h:commandLink value="Register" action="Registration.xhtml"></h:commandLink> <h:commandLink value="Forgot Your Password?"></h:commandLink> </h:panelGrid> </center> </h:form>
merci d'avance.Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <h:form> <center> <p:panel id="panel" header="Authentification" style="width:450px;"> <p:messages /> <h:panelGrid columns="2" cellpadding="5"> <h:outputLabel value="Login : *" /> <p:inputText id="login" value="#{loginBean.login}"></p:inputText> <h:outputLabel value="Password : *" /> <p:inputText id="password" value="#{loginBean.password}"/> </h:panelGrid> <p:commandButton value="Submit" actionListener="#{loginBean.loginn}" type="submit" /> </p:panel> </center> </h:form>