[EMAIL PROTECTED] wrote on 10/14/2005 02:51:05 PM: > On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > 3. Next I click on logoff and this is where stuff gets goofy. > > Logoff link points to "logon.logoff". LogActions.logoff() does some stuff > > and then returns "unauthenticated" which is mapped in faces-config.xml to > > /failure.jsp which in turn displays a tiles def for /login - which again > > displays my logon page fine. > > But see what my debug statements say: > > > > in init of worklist! and ispostback is: true > > in preprocess of worklist! and ispostback is: true > > in prerender of worklist! and ispostback is: true > > > > The last statement is what i don't get. According to > > http://struts.apache.org/shale/features.html#view this is the "Postback > > processed by page A, which then navigates to page B" case of processing > > where worklist.jsp is "A" and logon.jsp is "B". > > So my thought is that third statement should read: > > > > in prerender of login! and ispostback is: false > > > > So why is prerender of worklist() being called? Can anybody shed some > > light on this? > > Thanks very much in advance! > > Geeta > > > > The implication of this sequence of events is that the navigation requested > by "unauthenticated" did not actually happen, so it's redisplaying the same > page again. Are you sure you've got the navigation rules set up correctly, > so that this navigation should actually fire? > > It might also be useful to experiment with a case where worklist.jsp is just > a simple JSP page and not something with Tiles in it, just to make sure > that's not part of the problem.
So here's what i did: Changed worklist.jsp to a page with no tiles in it. Changed LogActions.logoff() to return "logOff" which is mapped in faces-config.xml to a (non-tiles) page called failure1.jsp. Cleaned out work directory, cleaned, rebuilt blah-blah.. Then went through the steps again: Bring up index.jsp, then log on, then logout. I see the new failure1.jsp so i know the forwarding happened correctly. But the last piece stays wonky: prerender() of worklist is still being called but prereder of logon is not. Only thing I didn't do was change *all* my pages to non-tiles pages - which is the only other thing I can think of.. Kinda sad since I was excited thinking I'd *finally* understood something about Shale correctly. ah well.. > > Craig > Geeta