• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

jsf newbie, navigation not working

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Crossposted: http://forums.sun.com/thread.jspa?threadID=5360401
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
karan dhillon
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Crossposted: http://forums.sun.com/thread.jspa?threadID=5360401
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites


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.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic