Hi The List View is being refreshed now. I have made couple of iterations and have pretty much lost track of how I went about. But, one of the things I did was add an anonymous class in my Search panel as ar LoadableDetachableModel and in the load() I return a list from the CompoundPropertyModel instance that I created as part of the Search form instance.
I guess this(LoadableDetachableModel) was a requirement if we want the search results panel to be repainted with 'new' data from model i.e update the model the ListView uses? I have a slightly different behavior now, which is correct logically speaking but I think i should start a different thread.Also if is allowed to upload a sample project for the experts to comment on the approach taken and also thought it I can contribute it after some modification as a tutorial or guide for newbies like me? Your thoughts as always appreciate Cheers On Mon, Aug 9, 2010 at 11:24 AM, Nivedan Nadaraj <shravann...@gmail.com>wrote: > Hi > Thanks for the pointers. > > I have tried doing the following and yet to see the expected result (i.e > re-render the list view with the new items) > > 1 .Using an entirely new Model instance, and seting it using setModel > 2. When the Listview is created I have said setReuseItems(true) > 3. When the model has changed I execute the listview.removeAll() (prior to > updating the model)// as per documentation removeAll is to be called if > model changed > 4. Since we say setModel() wouldn't that call modelChanged()? Anyways I > have expliclty invoked modelChanged > > Bascially, I have got the ListView inside a panel.The panel is wrapped > inside the WebmarkupContainer. > > thanks again > Niv > > > > On Fri, Aug 6, 2010 at 6:57 PM, Wilhelmsen Tor Iver <toriv...@arrive.no>wrote: > >> > this.setModelObject(updatedModelInstance); >> >> Are you sure you do not mean setModel() instead of setModelObject() here? >> >> Also, look into whether you use setReuseItems(true) on the listview, then >> you probably want modelChanged() somewhere too. >> >> - Tor Iver >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >