File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Navigation behavior/expectation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Navigation behavior/expectation" Watch "Navigation behavior/expectation" New topic
Author

Navigation behavior/expectation

Timothy Stone
Ranch Hand

Joined: Aug 01, 2001
Posts: 71
I have not seen an answer that stands out in [Manning, JSFIA] so I thought I would ask it here:

I have a Login.jsp page. On a "success" outcome it takes me to another resource. Straight forward enough. However, I expected the new resource to be reflected in the URL in the location field of the browser, e.g.

Login.jsp > "success" > MyPage.jsp
Login.jsp > "failure" > Login.jsp

(All faces-config.xml navigation rule and cases apply)

My URL seems to always display "Login.jsp", or, depending on the browser, "Login.jsp#". I expected, possibly incorrectly because of the postback nature of JSF, "MyPage.jsp" ... the correct resource is returned as expected though.

Did I configure something wrong, or am I using the commandbutton component incorrectly, in its action attribute?

Oh, I'm using the Sun Java Visual Web Pack components part of NetBeans 5.5, not the RI components, if that matters.

Regards,
Tim


Timothy Stone, MIT, SCJP
http://www.petmystone.com/
"This Satan's drink [coffee] is so delicious, we shall cheat Satan and baptize it." --Pope Clement the VIII (1592-1605)
Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
Do you have a "<redirect/>" in your navigation case?
Timothy Stone
Ranch Hand

Joined: Aug 01, 2001
Posts: 71
Thank you. I read this in [Manning, JSFIA] and it just didn't pop when I went back looking for an answer to my "expectations."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigation behavior/expectation
 
Similar Threads
java.lang.IllegalStateException: using sendRedirect()
issue with hx:pagerDeluxe
Struts Validation not working
EL in views and outcomes?
Navigation Problem using JDeveloper