Are you using an ajaxlink or a regular link?
if(ajax)
try wrapping your list in a WebMarkupContainer and add that to the ajaxtarget.
else
this should already work, the entire page is automatically refreshed
after the onclick exits.
Maurice
On Mon, Apr 14, 2008 at 12:38 PM, Milan Křápek <[EMAIL PROTECTED]> wrote:
> Thanks a lot,
> with the LoadableDetachableModel I am now able to show the changes when I
> edit the item. But some problems still remain.
> To delete items I have just link, that on the onClick event removes the
> selected item. So I need to reload the page after this remove too. I try to
> do it by adding
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("onclick", "window.refresh();");
> }
> to that Link. This works, but the window.refresh() commnad is called before
> the action in the onClick method. Is it posible to do the refresh after the
> action in onClick method??
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>