Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-13 Thread Steamus
Thank you All!
Thank you, Igor! It works excellent.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-concurrent-click-on-ajax-links-AjaxFallbackLink-tp4660226p4660251.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



How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Steamus
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



Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Sven Meier

Read here:

http://stackoverflow.com/questions/11773885/customizing-indicatingajaxlink-in-wicket

Sven

On 07/12/2013 01:17 PM, Steamus 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



Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Steamus
Thank you, Sven

The indicator works well, but unfortunately it doesn’t resolve the problem. 
If a user want to double click on some link we have crash as before. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-concurrent-click-on-ajax-links-AjaxFallbackLink-tp4660226p4660239.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



Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Ernesto Reinaldo Barreiro
See IAjaxIndicatorAware. Use it to display a veil that protect your page.


On Fri, Jul 12, 2013 at 5:03 PM, Steamus steam...@gmail.com wrote:

 Thank you, Sven

 The indicator works well, but unfortunately it doesn’t resolve the problem.
 If a user want to double click on some link we have crash as before.




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-concurrent-click-on-ajax-links-AjaxFallbackLink-tp4660226p4660239.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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Igor Vaynberg
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