See below > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wicket-develop- > [EMAIL PROTECTED] On Behalf Of Eelco Hillenius > Sent: Wednesday, 9 March 2005 2:46 AM > To: [email protected] > Subject: Re: [Wicket-develop] should we make AbstractResource > serializeable or not? > ... SNIP ... > > Also, currently the model is allready only attach when needed. > Attachement happens on the first getObject, and onAttach is called at > most once during a request. >
It just happens that in my case - using a ListView - the list view calls getModelObject within the onRender method (via getViewSize) this is causing my detached model to re-attach for every request - even repeated IredirectListener requests. Could this component possibly be changed to remember the size of the list ? Cameron > Eelco > > Cameron Braid wrote: > > > The issue that I think will eventuate from this is perforamce related. > > > > If I have a list of 40 items each using a detachable model (based on > > entity id). When the request comes back (after a post) there will need > > to be 40 individual selects to re-attach the listitem models. > > > > This is because detachable models seem to be automatically re-attachd > > automatically at the start of the request - even if the model isn't > > accessed. > > > > Would it be possible to have a lazy detachable model, such that it is > > only re-attached if / when the model is actually accessed ? > > > > Cameron > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Wicket-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-develop ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
