Refreshing a Panel on Form onSubmit()

2008-09-23 Thread zaheers

I have a Panel  that has the search criteria as well as the search results.
The results are to be refreshed every time user clicks on the search button.
I am doing this by storing a List as an instance variable and passing the
list to the PageableListView. But I see that the panel is not refreshed with
results when the search button is clicked. How to refresh the Panel. Thanks
for your help.

http://www.nabble.com/file/p19629724/SearchPanel.java SearchPanel.java 
-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-Panel-on-Form-onSubmit%28%29-tp19629724p19629724.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing a Panel on Form onSubmit()

2008-09-23 Thread jchappelle

Instead of passing a list of items into your PageableListView, pass in a
LoadableDetachable model. Inside of the onLoad method put the same code that
is in your Form onSubmit. Your Form onSubmit will be empty and it will
effectively only reload the page when the form gets submitted. When that
happens, it will trigger the onLoad method of the LoadableDetachable model
and your PageableListView should get repopulated.

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-Panel-on-Form-onSubmit%28%29-tp19629724p19635273.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]