Thanks. That sounds like a clean solution. I'm surprised this isn't
factored into the grid as my case is common I'm sure.

On Tue, May 20, 2008 at 10:30 AM, Thiago HP <[EMAIL PROTECTED]> wrote:
> On 5/19/08, Todd Orr <[EMAIL PROTECTED]> wrote:
>> I have a Form and a Grid on my search page. The Form's success handler
>>  populates a List results variable using an expensive query that I'd
>>  like to not run on every Grid page navigation. To prevent unnecessary
>>  query hits I use the @Persist annotation on the results var.
>
> Instead of persisting the results, try to persist the search
> parameters and implement a custom GridDataSource, so you only retrieve
> the objects shown in the current page, not the entire list.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to