Re: Ajax-Panel Toggling Visibility

2010-08-10 Thread Nivedan Nadaraj
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

Re: Ajax-Panel Toggling Visibility

2010-08-08 Thread Nivedan Nadaraj
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

Ajax-Panel Toggling Visibility

2010-08-06 Thread Niv
not needed/allowed INFO: focus set on test11 INFO: focus removed from test11 Any thoughts? Thank Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Panel-Toggling-Visibility-tp2316018p2316018.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Niv
Hi I think I failed to explicitly mention that the panel is not being made visible even though the code to setVisible is executed. Thanks niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Panel-Toggling-Visibility-tp2316018p2316020.html Sent from the Wicket

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Wilhelmsen Tor Iver
searchResults = new SearchResults(id,list); //- Not sure if this is the correct way to refresh a ListView... It's not. Creating a new object like this will defeat the logic because it has not been added to the hierarchy that the Ajax call expects. What you want to do is to modify the

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Nivedan Nadaraj
Hi Thank's for correcting me on how to update the ListView, nicely explained. 1. I am able to view the results panel now. 2. I have made change in the following way to update the list by updating the model. Added a WebMarkupContainer and wrapped the ListView within it. The visibility is

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Nivedan Nadaraj
I initalised the ListView with some data and now when i click the search ajax button it renders the header and content that the list was first at the time of construction initialised with. However, as part of onSearch click i do update the list and set the model. This new data is not being

SV: Ajax-Panel Toggling Visibility

2010-08-06 Thread Wilhelmsen Tor Iver
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