Re: Triggering a partial update on a grid

2008-10-08 Thread Hugo Palma
That could be problem. I can see that the grid is using CachingDataSource for caching the dataSource size. But i see no way to invalidate that cache. Jecki wrote: On Wed, Oct 8, 2008 at 12:47 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: I have a search form and a grid with the results. I'd l

Re: Triggering a partial update on a grid

2008-10-08 Thread Jecki
On Wed, Oct 8, 2008 at 12:47 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: > I have a search form and a grid with the results. > I'd like to submit the form and update the grid with the filtered results > without doing a full page refresh. > > My take on this is to set the form component "zone" parame

Re: Triggering a partial update on a grid

2008-10-08 Thread Hugo Palma
Yep, i have it implemented like that. Forgot to rollback some changes that i tried to make this work before putting the code in the post. Sorry. With a zone just outside the grid and setting the form to update it i'm still getting the exception. Thiago H. de Paula Figueiredo wrote: Em Tue, 07 O

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:42:26 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: I thought so too, but i'm starting to think there is one. Here's some of the code in hope someone will spot something wrong: Maybe not related to your problem, but the zone parameter of the Form comp

Re: Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I thought so too, but i'm starting to think there is one. Here's some of the code in hope someone will spot something wrong: template: submit="true"/> zone="processGrid">Search inplace="true" rowsPerPage="prop:gridRowsPerPage" row="currentProcess"

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:22:03 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: What's the difference between using the form submit with a zone and using an event link besides the form parameters not getting updated ? AFAIK, none. -- Thiago H. de Paula Figueiredo Independent Java consultant,

Re: Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I had thought of that. But all the form parameters are persisted and i have debugged the application and the grid source parameter has the correct size. Only the grid doesn't seem to be aware of it. I just found out that if i use an eventlink component to trigger the update instead of the for

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 13:47:30 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: Caused by: java.lang.IndexOutOfBoundsException: Index: 10, Size: 10 Take a look at the collection returned to the Grid source parameter in the second request. One common error is to not @Persist the form parameter

Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I have a search form and a grid with the results. I'd like to submit the form and update the grid with the filtered results without doing a full page refresh. My take on this is to set the form component "zone" parameter to the grid zone id so that the form submit it's treated "AJAX way" and