File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes jsf newbie, navigation not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf newbie, navigation not working" Watch "jsf newbie, navigation not working" New topic

jsf newbie, navigation not working

karan dhillon

Joined: Jan 11, 2009
Posts: 3
hi there, i ve just started learning jsf , i am referring the book 'jsf in action', and now i got stuck with this navigation problem.
this is what my faces-config.xml look like:-

this is the code from my inbox.jsp page.

now navigation from login.jsp and toolbar page which is included in every jsp page as header.jsp is working all right .
but navigation links from inbox.jsp(approve, reject and details) are not going anywhere , inbox.jsp page just refreshes and url is appended by a '#' , thats all it does.
<h:messages/> tag on inbox.jsp page does not show any errors at all.
Could'nt figure out what might be the cause although i am sure i am making some mistake somewhere as the code i downloaded from 'jsf in action' site is working perfect.

any help would be appreciated.

Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Hey Karan,

If you look at line 44 on the code you posted of your faces-config file, you'll see that the reference to the approve.jsp file there is in the directory /faces/ whereas all the rest aren't?

Perhaps that is where your problem lies. Can you send your directory structure through. with all the files in each directory.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Please read this:
karan dhillon

Joined: Jan 11, 2009
Posts: 3
thanks for replying Darryl , well i was trying anything and everything so i thought of experimenting with urls like putting /faces and all that. as the url-mapping of my faces servlet is /faces/* , thats why i tried that, but in vain, and no link on inbox.jsp page works except for the header page that is included with <jsp:include/> tag, so i get same output for details and reject outcomes as well. my directory structure is simple , all the jsp pages are at the root directory, faces-config.xml and webxml under WEB-INF and since i am stuck, there are no java classes as yet.

karan dhillon

Joined: Jan 11, 2009
Posts: 3

Dear there was no intention from my side to annoy those who want to help me or to make anybody feel like they've wasted their time .
and as you can see i ve posted the question in sun forum after quite a few hours as i didnt get any response in this forum for more than couple of hours. so i hope this clears the air but i you or somebody still felt annoyed i apologise for that.
I agree. Here's the link:
subject: jsf newbie, navigation not working
It's not a secret anymore!