the easiest way to do it is to tell the ajax channel used by the link
to drop requests if one is already in progress, this is called an
"active" channel.


add(new AjaxLink(..) {
  updateAjaxAttributes(attrs) {
     attrs.setChannel(new AjaxChannel("blocking", AjaxChannel.Type.ACTIVE));
  }
}

if you wan to block across a group of links then create a channel
singleton and give it to all the links.

-igor


On Fri, Jul 12, 2013 at 4:17 AM, Steamus <steam...@gmail.com> wrote:
> When I fast click in an AjaxFallbackLink in my DataTable the first click
> works correct but next click generates Access Denied (You do not have access
> to the page you requested.). And there is an exception
> “RequestListenerInterface.invoke(..) | behavior not enabled; ignore call.”
>
> I was trying to investigate a forum and looks like it is famous problem. But
> all advices proposed to read a topic
> http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/.
>
> Unfortunately the link unavailable any more. May be anybody can repeat a
> solution or for last five years was proposed something new?
>
> I really appreciate any help you can provide.
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-concurrent-click-on-ajax-links-AjaxFallbackLink-tp4660226.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

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

Reply via email to