Hi, 
I've looked all over the Internet for this, but nothing works.

I have a basic Grid pulling data from an Entity bean.
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)

Thanks for all your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to