[aida] WebGrid and object instances.
Janko Mivšek
janko.mivsek at eranova.si
Tue Jul 7 22:59:48 CEST 2009
Hi Nicholas,
Nicholas Moore pravi:
> I already have columnFilters: - which I like and work nicely. I have
> added rowsOnPage: 20; but only get the first page - selecting a
> different page number has no effect.
>
> Neither of them seem to have affected the way instances of WebText stay
> in the image.
Ok, I think I know the reason. While Ajax updating your grid and other
elements your WebText ids are registered in contexts but old ones are
not released. That's why those instances are growing and growing. To
check that, look at your app contexts instvar.
Why old ids are not released? Well, it is a bit hard to know, when they
won't be used for sure anymore. This is an old problem but I hope with
contexts we'll solve it somehow.
Best regards
Janko
>
> Nicholas
>
> On Tuesday 07 July 2009 19:28:55 you wrote:
>
>> Hi Nicholas,
>
>>
>
>> I'd add paging and column filters for quick filtering down the persons.
>
>> WebGrid filters are something my customers love the most.
>
>>
>
>> Janko
>
>>
>
>> Nicholas Moore pravi:
>
>> > I think this is worth a new thread (Thanks for your earlier response
>
>> > Herbert).
>
>> >
>
>> > My directory listing works very well, the Aida ajax calls allow me to
>
>> > have a nice display of names and show a selected entry details alongside
>
>> > the list of names. It is likely that a user will have the page open for
>
>> > a while and look at a series of entries.
>
>> >
>
>> > After a while there will be a few thousand WebText elements. The
>
>> > behaviour is not 100% consistent but in general I have to manually
>
>> > remove the instance of my app and then do initAppsForObjects for the
>
>> > session and then do a gc in order to remove them. Sometimes I have to do
>
>> > this twice.
>
>> >
>
>> > It is not clear to me whether it is the context or the app (or the
>
>> > session) which is being held onto.
>
>> >
>
>> > As a test I have tried sub-classing 'webAppFor' in the apps observee and
>
>> > modifying it so that it always creates a new app when the page is
>
>> > refreshed - this works well with respect to releasing the Text objects,
>
>> > but of course the app loses all context etc for the ajax calls and the
>
>> > request headers.
>
>> >
>
>> > Any suggestions appreciated.
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
More information about the Aida
mailing list