[
http://issues.apache.org/jira/browse/BEEHIVE-311?page=comments#action_59341 ]
Rich Feit commented on BEEHIVE-311:
-----------------------------------
If you have the <pageflow-config><throw-session-expired-exception> element set
to true in netui-config.xml (true is the default), you *should* be getting a
SessionExpiredException. We throw this when we have a condition ("no previous
page" in your case) that's likely to have been caused by session expiration.
You can handle this exception using @Jpf.Catch to do whatever you want (go to
an error page, run the begin action, etc.).
@Jpf.Controller(
catches={
@Jpf.Catch(type=SessionExpiredException.class, path="error.jsp")
}
)
or
@Jpf.Controller(
catches={
@Jpf.Catch(type=SessionExpiredException.class,
method="mySessionExceptionHandler")
}
)
I am not currently reading the default value correctly, however, so if this
element (throw-session-expired-exception) isn't present, you'll get a
NoPreviousPageException. I'm working on a fix for that now.
> return-to='currentPage' doesn't do anything when their isn't a current page
> in the pageflow
> -------------------------------------------------------------------------------------------
>
> Key: BEEHIVE-311
> URL: http://issues.apache.org/jira/browse/BEEHIVE-311
> Project: Beehive
> Type: Improvement
> Components: NetUI
> Versions: V1
> Reporter: Karen Stutesman
> Assignee: Rich Feit
>
> There are a few cases such as a session timeout where a user might
> unknowingly expect a tree to be present but receives a message: "You have
> tried to return to a recent page in the current page flow through
> return-to='currentPage', but there is no appropriate page".
> Is there a way the tree could rebuild somehow in these cases instead of
> receiving this error message?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira