Some javascript/style in this post has been disabled (
why?)
Yes, I think the solution lies in the way that a context does or does not release the WebText instances. Interestingly I do not get the same build up of other elements. I will be travelling for the next couple of weeks, but will investigate as soon as I can and let you know.
Nicholas
On Tuesday 07 July 2009 22:59:48 Janko Mivšek wrote:
> 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.
>
>
--
Nicholas Moore
Limoges
France
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida