Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Navigation behavior/expectation

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a "<redirect/>" in your navigation case?
 
Timothy Stone
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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."
 
reply
    Bookmark Topic Watch Topic
  • New Topic