Salut!
Je suis sur une application web Java EEet j'utilise les technologies suivants:
-NetBeans IDE 8.0.1 avec GlassFish Server 4.1 integré;
-JavaServer Faces et l'implémentation PrimeFaces 5.0
Je rencontre un problème lié à l'affichages des composants jsf
voici le code:page login.xhtmlEt voilà le rendu:
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 <?xml version='1.0' encoding='UTF-8' ?> <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" > <h:head> <title>Autentification</title> </h:head> <h:body> <f:view> <div id="login"> <h:form> <fieldset id="cadreLogin"> <legend>Authentification</legend> <h:outputLabel for="login">Login</h:outputLabel> <h:inputText id="login" value="#{loginCntrl.identifiant}" required="true" size="20" maxlength="15"></h:inputText> <h:message for="login" id="loginMessage" errorClass="erreur"/><br/> <h:outputLabel for="passwd">Password</h:outputLabel> <h:inputSecret id="passwd" value="#{loginCntrl.identifiant}" required="true" size="20" maxlength="15"></h:inputSecret> <h:message for="passwd" id="passwdMessage" errorClass="erreur"/><br/> <h:commandButton value="Connexion" action="accueil"/> </fieldset> </h:form> </div> </f:view> </h:body> </html>
Comme vous le voyez les champs de saisies et le bouton n'ont pas été pris en compte dans l'affichage!
Ce problème survient après la création du ficher faces-config.xhtml
Merci de me secourir!
Partager