[
https://issues.apache.org/jira/browse/TAP5-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lenny Primak closed TAP5-1634.
------------------------------
Resolution: Abandoned
> Grid, inPlace Update and expired Sessions - Redirect to Login
> -------------------------------------------------------------
>
> Key: TAP5-1634
> URL: https://issues.apache.org/jira/browse/TAP5-1634
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> I have a basic Grid pulling data from an Entity bean. inPlace = true.
> Obviously, when session expires, I get the "there is no data to display"
> message.
> What I really want to do is to redirect to the current page, so the user gets
> to relogin and session
> gets re-established.
> Here's what I tried:
> @SuppressWarnings("unused")
> @OnEvent(value="inplaceUpdate", component="usersGrid")
> private Object ajaxPageChanged()
> {
> if(request.getSession(false) != null)
> {
> return null;
> }
> else
> {
> return ps.createPageRenderLink(LoginPage.class).;
> }
> }
> I get an exception:
> Caused by: java.lang.IllegalArgumentException: Event 'inplaceupdate' from
> test/TapPage:usersgrid.pager received an event handler method return value of
> /com.bettaway_baw-website_war_1.2/loginpage. This type of event does not
> support return values from event handler methods.
> at
> org.apache.tapestry5.internal.util.NotificationEventCallback.handleResult(NotificationEventCallback.java:39)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)