wood burning stoves 2.0*
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
Author

jsf newbie, navigation not working

karan dhillon
Greenhorn

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.

Tjeers
Darryl
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?threadID=5360401
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
karan dhillon
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: jsf newbie, navigation not working
 
Similar Threads
JSF navigation rule problem
h:commandLink issue
Providing anchor to columns in a datatable
Field display problem
problem JSF - datatable from DB