...
That is why you need to provide the WebMarkupContainer
yourself as a
wrapper for the listview.
Wiki Markup |
---|
_\[Thanks to Igor & Martijn for the original postings to the Wicket-User list._ _[_Gwyn_|User__Gwynevans]_ _22:32, 21 Aug 2006 (BST)\]_ |
To repaint a WebMarkupContainer on an ajax submit (or edit or whatever), add the container to the AjaxRequestTarget:
Code Block |
---|
AjaxButton button = new AjaxButton("button1") { protected void onSubmit(AjaxRequestTarget target, Form form) { target.addComponent(<your WebMarkupContainer variable>); } |
...
|
...
|
...
|
...
}
|
Example
Here's one working example. It displays a table with 5 rows, with some random strings, and updating with the current date. It is designed to be an actually complete example, for those of us that understand the idea of what is said above, but not necessarily how to go about doing that. (And actually presenting both the markup and the backing code)
...