facebook

navigation is not working

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271372 Reply

    murbain
    Member

    hi, i have a test page with simple command button, when I click on it I want it go to next page but nothing happend. here is my code.thank you for your help.

    faces-config.xml file

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”&gt;

    <faces-config >

    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    </navigation-rule>

    <navigation-rule>
    <from-view-id>/welcome.jsp</from-view-id>

    <navigation-case>
    <from-outcome>goToApp</from-outcome>
    <to-view-id>/clientPage.jsp</to-view-id>
    </navigation-case></navigation-rule>

    <navigation-rule>
    <from-view-id>/clientPage.jsp</from-view-id>
    </navigation-rule>

    </faces-config>

    welcome.jsp file

    <%@ page language=”java” pageEncoding=”UTF-8″%>
    <%@ taglib uri=”http://java.sun.com/jsf/html&#8221; prefix=”h” %>
    <%@ taglib uri=”http://java.sun.com/jsf/core&#8221; prefix=”f” %>
    <html>
    <body>
    <f:view>
    <h:form>
    <h:commandButton value=”facturation” action=”goToApp” type=”submit”/>
    </h:form>
    </f:view>
    </body>
    </html>

    #271399 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: navigation is not working

You must be logged in to post in the forum log in