Hi Clement, as Martin said "this means an actual redirect (=roundtrip to the client)", means something like the link is called twice, if you just clicked it once. That this is going to decrease performance is a logical consequence.
Back to your question: No you are not doing anything wrong, we all got the same behaviour. If it is necessary and if it is not that's a good question. I would say after form submits it is. After clicking just a link to another page you should not care about it. Regards Johannes "MyFaces Discussion" <[email protected]> schrieb am 04.08.05 15:02:06: > Thanks for the advise Martin, but the problem is that when I don't put a > <redirect/> in any of my <navigation-case> I get the problem again ... Am I > doing something wrong in the navigation of my webApp ? What do you mean by > "where it is necessary" ? in which case ? What does actually do this > <redirect/> tag ? Thanks for your help Martin. Regards, Clément > -----Message d'origine----- > De : Martin Marinschek [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 4 août 2005 14:30 > À : MyFaces Discussion > Objet : Re: RE : Shift in browser url bar > > You need to know though that this means an actual redirect (=roundtrip to the > client) - so use it were it is necessary, but not in all navigation rules if > you want to keep performance at its best level ;) > > regards, > > Martin > > On 8/4/05, Clément Maignien <[EMAIL PROTECTED]> wrote: Cool ! This works > perfect :D > Thanks a lot Johannes ;) > > Clément - Loves when problems solve so quickly, thx again. > > -----Message d'origine----- > De : Johannes Hiemer [mailto: [EMAIL PROTECTED] > Envoyé : jeudi 4 août 2005 12:28 > À : MyFaces Discussion > Objet : Re: Shift in browser url bar > > > > Hi, > did you add the <redirect/> in your faces-config.xml? > Something like that as example: > <navigation-rule> > <from-view-id>*</from-view-id> > <navigation-case> > <from-outcome>success</from-outcome> > <to-view-id>/success.jsp</to-view-id> > <redirect /> > </navigation-case> > </navigation-rule> > > Hope that helps. > > Regards Johannes > > > > >"MyFaces Discussion" < [email protected]> schrieb am 04.08.05 > >11:26:12: > > Hi, I notice a problem in my web application. This is quite wierd : I have > > a welcome page "index.jsp" that redirect to a login page "login.jsp". This > > works fine at that >point : the url in my browser displays > > "http://localhost:8080/myApp/faces/login.jsp" The problem comes after the > > login action : In case of login success, the >welcome.jsp page is displayed > > as expected but the url in my browser is still > > "http://localhost:8080/myApp/faces/login.jsp" instead of > > >"http://localhost:8080/myApp/faces/welcome.jsp " Then during all the > > navigation this shift between the previous and the actual page still occurs > > : if the current.jsp >page is displayed I have > > "http://localhost:8080/myApp/faces/previous.jsp" in the url bar of my > > browser. Then if I click on link to "next.jsp" in my menu, the url bar will > > >be "http://localhost:8080/myApp/faces/current.jsp" ... hope this is clear > > (... not sure :D ) This is quite cumbersome, because on a relaod browser > > button click the >previous page is redisplayed instead of the current one. > > The problem occurs in every browser I tried. Does anyone encounter this > > problem before ? Which files of my >webapp do you need to see where the > > problem could come from ? Thanks a lot Clément. > > > > > __________________________________________________________ > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?mc=021201 > > > ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

