Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a "shown" variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty <ajax-response>
that the browser receives.

Thanks

Original Message:
-----------------
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com <
wic...@geofflancaster.com> wrote:

> Has anyone had any problems using an AjaxLink where the onclick method is
> being called twice?
>
> I'm trying to use an AjaxLink to load a ModalWindow but the second time
> it's being called, the ModalWindow thinks that the window has already
> loaded so it returns nothing.
>
> --------------------------------------------------------------------
> mail2web.com – What can On Demand Business Solutions do for you?
> http://link.mail2web.com/Business/SharePoint
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to