tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenny Primak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAP5-1634) Grid, inPlace Update and expired Sessions - Redirect to Login
Date Thu, 08 Sep 2011 01:44:09 GMT
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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message