Bonjour,
je débute en jsf et j'ai un petit problème avec l'affichage de l'url, en effet l'url affichée est toujours celle de la page précédente voici le code mes pages :

Page2.jsp
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
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Page2
    Created on : 15 févr. 2009, 10:00:27
    Author     : fbourqui
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <html id="outputHtml1">
            <head id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
            </head>
            <body id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <ice:inputText id="inputText1" style="left: 70px; top: 46px; position: absolute" value="#{SessionBean1.login}"/>
                    <ice:commandButton action="#{Page2.button1_action}" id="button1" style="left: 240px; top: 48px; position: absolute" value="submit"/>
                </ice:form>
            </body>
        </html>
    </f:view>
</jsp:root>
Page1.jsp
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Page1
    Created on : 15 févr. 2009, 10:00:13
    Author     : fbourqui
-->
<jsp:root version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <html id="outputHtml1">
            <head id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
            </head>
            <body id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <ice:outputLabel id="outputLabel2" style="left: 120px; top: 96px; position: absolute; width: 96px" value="#{SessionBean1.login}"/>
                    <ice:outputLabel id="outputLabel1" style="left: 120px; top: 48px; position: absolute" value="Page1"/>
                </ice:form>
            </body>
        </html>
    </f:view>
</jsp:root>
Est-ce que quelqu'un a une idée?