Je n'arrive plus à appliquer des règles de navigation. Je suis en train de faire un exercice très simple :
Et voici le fichier formulaire.jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <navigation-rule> <from-view-id>/formulaire.jsp</from-view-id> <navigation-case> <from-outcome>validation</from-outcome> <to-view-id>/pageperso.jsp</to-view-id> </navigation-case> </navigation-rule>
Bref, tout ce qu'il y a de plus simple. Mais ça ne marche pas, le bouton valider reste inactif. Je travail avec Netbeans. Avez-vous une idée de ce que j'aurais pu oublier ?
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 <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%-- This file is an entry point for JavaServer Faces application. --%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <f:view> prenom : <h:inputText value="#{user.prenom}"/> <br> nom : <h:inputText value="#{user.nom}"/> <br> <h:commandButton value="valider" action="validation"/> </f:view> </body> </html>
Partager