JSF posts back to the current page for validation and updating. JSF
doesn't know what the next page is because the navigation handler has
not been run, and the application is not sure that the user's input is
valid. After the navigation rule is run, a new view is created and
rendered. As a result, the user is still seeing the page that was
posted to, so as a result the URL is always one behind.

If you use navigation rules with redirects, once the navigation rule
is run, the new URL is sent to the browser and thus the URL is always
of the current page. The disadvantage is more trips to the server.

So with redirects, you should have the current URL in the browser. If
you don't, then the redirect is not occurring and you will have to
check your setup to see why.

On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

if I use <redirect /> JSF change my URI. Is there another possibility to
show the current URL in the browser and to use faces-navigation?

Why show JSF not the current URL in the browser ?????
In old Struts-Apps I never had this problem.




Robert Reiz
(24/7-IT-Services)


 ________________________________
 Von: Francisco Melo [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. Juni 2007 15:26
An: MyFaces Discussion
Betreff: Re: AW: JSF URL



Hi, try do not use the navigation faces in faces-config.xml, use a URL like
a href attribute i an <a> tag.

[EMAIL PROTECTED] escreveu:

Hi,

I have try it, but no effects.


Robert Reiz
(24/7-IT-Services)



 ________________________________
 Von: Cagatay Civici [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. Juni 2007 14:56
An: MyFaces Discussion
Betreff: Re: JSF URL

Hi,

Try adding <redirect /> to your navigation configs in these cases.

Cagatay


On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> we have some JSF Applications with MyFaces, Trinidad, Facelets, Spring,
Hibernate.
> In all Apps the Browser show allways the last URL, not the current URL.
> For exampel:
>
> 1. I start the App. I come to the "login.jsf".
> 2. After the login-Procedure I come to "welcome.jsf", but in the URL is
still "login.jsf".
> 3. After I click "useradministration" I come to the
"useradministration.jsf", but in the URL is still "welcome.jsf"
>
> what I have to do, to change this behavior. I will always see the actual
"XXX.jsf" int the URL.
> If I am in the useradministration, I will see the "useradministration.jsf"
in the URL.
>
> thanks,
>
> Robert Reiz
> (24/7-IT-Services)



Reply via email to