Anna,

You mean how to access AjaxRequestTarget? Try AjaxRequestTarget.get():
I think it can be accessed as a thread local.

Ernesto

On Thu, Jul 1, 2010 at 3:22 AM, Anna Simbirtsev <[email protected]> wrote:
> Hi,
>
> AjaxSubmitLink removeLink = new AjaxSubmitLink("removeLink") {
> @Override
> public void onSubmit(AjaxTargetRequest target) {
>
>    MyPanel.this.replaceWith(new ConfirmDeletePanel(
>    MyPanel.this.getId(), "are you sure") {
>
>   @Override
>   protected void onCancel() {
>     this.replaceWith(MyPanel.this);
>   }
>
> �...@override
>  protected void onConfirm() {
>    // do something you want confirmed beforehand
>    // .... then
>    this.replaceWith(MyPanel.this);
>  }
> });
> }
>
> };
> In onConfirm function of ConfirmDeletePanel, how can I rerender some fields
> in the MyPanel.this after it is replaced back if i don't have
> AjaxTargetRequest?
> I mean onConfirm changes the values that are displayed on MyPanel and I want
> to refresh them.
>
> Thanks
> Anna
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to