Seems to me that this would be a common thing with any of the AJAX components.
Should I open up a JIRA issue?

On Fri, 02 Sep 2011 18:14:28 -0300, Lenny Primak <lpri...@hope.nyc.ny.us> wrote:

> I figured that was a simple one.  Should not have thought so.
> all my questions are complicated, otherwise I would have not asked :)

hehehe :)

> 
> On Sep 2, 2011, at 5:11 PM, Thiago H. de Paula Figueiredo wrote:
> 
>> On Fri, 02 Sep 2011 17:43:42 -0300, Lenny Primak <lpri...@hope.nyc.ny.us> 
>> wrote:
>> 
>>> Oh you are here Thiago!
>> 
>> I'm always here, but I don't know the answers for all questions nor the time 
>> to investigate them. (I wish I had).
>> 
>>> How about my Grid/Sessino invalidation session question?
>> 
>> I have no idea . . .
>> 
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
On Sep 2, 2011, at 11:10 AM, Lenny Primak wrote:

> 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