I tried the way Thiago suggested in the mentioned thread, but that does not 
work for the inPlace grid.
I really, REALLY, really do not want to create/compile my own version of 
patched tapestry
and patch tapestry.js isn't that great of an idea.

------------- Error -------------------
SEVERE: Event 'inplaceupdate' from test/TapPage:usersgrid.pager received an 
event handler method return value of 
com.baw.website.pages.test.TapPage@1ca6705. This type of event does not support 
return values from event handler methods.
SEVERE: Operations trace:
SEVERE: [ 1] Triggering event 'action' on test/TapPage:usersgrid.pager
SEVERE: [ 2] Triggering event 'inplaceupdate' on test/TapPage:usersgrid.pager
SEVERE: [ 3] Handling result from method 
com.baw.website.pages.test.TapPage.onException(java.lang.Throwable).
------------------------
--------------------- CODE ---------------

   @SuppressWarnings("unused")
    @OnEvent(value="inplaceUpdate", component="usersGrid")
    @AfterRender
    private void ajaxPageChanged() throws SessionException
    {
            throw new SessionException("No Session");
    }
    
    
    private Object onException(Throwable cause)
    {
       // try to redirect to the current page
        return this;
    }
    

On Sep 10, 2011, at 1:40 AM, Taha Hafeez wrote:

> Hi Lenny
> 
> I handle this issue in a more generic way for all ajax calls.
> 
> http://tapestry.1045711.n5.nabble.com/Tapestry-Zone-and-Expired-Session-td4634714.html#a4634757
> 
> 
> 
> On Sat, Sep 10, 2011 at 10:23 AM, Lenny Primak <lpri...@hope.nyc.ny.us> wrote:
>> I cannot believe that no one has run into that issue.
>> Seems like anyone that's using the AJAX Grid would face it.
>> 
>> Please vote for https://issues.apache.org/jira/browse/TAP5-1634
>> if you care, or if anyone has a workaround, please suggest one.
>> 
>> Thanks
>> 
>> 
>> 
>> On Sep 2, 2011, at 5:24 PM, Lenny Primak wrote:
>> 
>>> 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
>> 
>> 
> 
> 
> 
> -- 
> Regards
> 
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to