myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] force reload and add message for partial update request and view has expired?
Date Tue, 04 Sep 2007 15:34:45 GMT
View expiry generally stinks in JSF 1.1;  in 1.2, there's
a ViewExpiredException, so the user should currently
see an alert.   That's not great - ideally, the main page
would refresh or redirect automatically.

I'm disinclined to tackle view expiry in JSF 1.1, as it's
generally just badly broken there.

-- Adam


On 8/31/07, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
> Correct me if I am wrong, but it seems that if a view has expired, and
> someone initiates a partial update, the page is just updated as if it
> hadn't. This is quite confusing to the user as nothing happens when
> they click on a link.
>
> What I would like to have happen, is the user redirected to the
> requested view and be able to add a FacesMessage stating that the view
> had expired.
>
> Has anyone done this or is it built in somewhere and I have just missed it?
>
> Example:
>
> Go to the trinidad demo, go into the component demo. Walk away from it
> for a while. Click one of the links (like the component demo link).
> Nothing happens. A second click works (since now the user has a view
> in the back-end).
>
> Thanks,
> Andrew
>

Mime
View raw message