myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John" <jo...@jak.com>
Subject RE: [Tobago] - Why would the RESTORE_VIEW afterPhase is not be called.
Date Sat, 09 Sep 2006 23:33:09 GMT
 Ok, I've expanded my phase listener to provide data after every
phase....

getViewId() changes to/shows main.jsp after the UPDATE_MODEL_VALUES
phase.
But after the RENDER_RESPONSE phase, main.jsp is displayed within the
browser window, but the URL in the browser's address bar still shows
login.jsp
If I refresh the page or click on any of the main.jsp's actions, the
browser's address bar correctly shows main.jsp.
Also the after RENDER_RESPONSE code in the phase listener, never gets
executed on the 1st appearance of main.jsp (maybe this is normal).

???

John

-----Original Message-----
From: John [mailto:johnk@jak.com] 
Sent: Thursday, September 07, 2006 10:38 PM
To: MyFaces Discussion
Subject: RE: [Tobago] - Why would the RESTORE_VIEW afterPhase is not be
called.

Through Navigation.

<navigation-case>
      <from-action>#{login.login}</from-action>
      <from-outcome>authenticated</from-outcome>
      <to-view-id>/main.jsp</to-view-id>
</navigation-case> 



-----Original Message-----
From: Martin Marinschek [mailto:martin.marinschek@gmail.com]
Sent: Thursday, September 07, 2006 10:12 PM
To: MyFaces Discussion
Subject: Re: [Tobago] - Why would the RESTORE_VIEW afterPhase is not be
called.

How do you link from the login.jsp page to the main.jsp page?

regards,

Martin

On 9/8/06, John <johnk@jak.com> wrote:
>
>
> For some reason, directly after navigating from the login.jsp page to 
> the main.jsp page, the RESTORE_VIEW afterPhase is not called.
>
> My main.jsp page has three tabs...
>
> After arriving on the main.jsp page (url doesn't update BTW - still
reads:
> "http://localhost:9090/myfaces/login.jsp), if I click on another tab, 
> the RESTORE_VIEW afterPhase is called.
>
> Am I misunderstanding the way things should work?
>
> Thanks,
> John


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Mime
View raw message