ListView and Serialization

2010-03-26 Thread Michael Gottschalk
Hi, I have a question concerning the serialization of subcomponents of ListView. If I understand correctly, then the components that are added to a ListView in the populateItem method should be stateless, since they are removed in the onPopulate method each time the list view is rendered (as lo

Re: ListView and Serialization

2010-03-26 Thread Michael Gottschalk
Hi Sven, you wrote: > there's no requirement for components inside ListView to be stateless - > I wonder were you got that from. I got that from the ListView class comment and from studying the code. The comment says: "By default, setReuseItems is false, which has the effect that ListView repla

Re: ListView and Serialization

2010-03-26 Thread Michael Gottschalk
Hi Sven, Am Freitag, 26. März 2010 schrieb Sven Meier: > >the only difference in my proposal is to call removeAll earlier: > >not in onBeforeRender of the next request cycle, but in onDetach of > >the current request cycle. > > it makes a huge difference: > If you call removeAll in onDetach, t