File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Navigation issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Navigation issue" Watch "Navigation issue" New topic

Navigation issue

Supriya Pramod

Joined: Jun 19, 2008
Posts: 10

I am not able to navigate between pages and there are no errors shown also.
But when the same command button is clicked twice , a error occurs.

The web.xml used is as below :

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"

<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>


<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>

<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->

and the faces.config is :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "">

<!-- Navigation rules -->







<!-- Managed beans -->
<description>Allotment Bean</description>

Can anybody please tel me watz the issue. Its urgent.

Anu Sri

Joined: May 19, 2008
Posts: 16

can you post your JSP and backing bean method
Ayub ali khan
Ranch Hand

Joined: Oct 20, 2005
Posts: 394
Hi Supriya,

Just a wild guess..remove the type attribute of h:commandButton and check if the form is being posted.

<h:commandButton id="sbutton" value="Submit Form" action="#userBean.check}" />

It would help if you can post your JSF code for the form to dubug.

Is the action method being called when you click the button ?


SCEA part I,TOGAF Foundation
I agree. Here's the link:
subject: Navigation issue
It's not a secret anymore!