Re: Click link

2010-04-04 Thread Mathias Nilsson
I solved it. I needed to set return false; in the javascript to get it to work in all browsers. -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28132265.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Click link

2010-04-04 Thread James Carman
://old.nabble.com/Click-link-tp28127635p28132265.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Click link

2010-04-04 Thread Mathias Nilsson
What is your suggestion? -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28133755.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Click link

2010-04-04 Thread James Carman
. On Sun, Apr 4, 2010 at 8:11 PM, Mathias Nilsson wicket.program...@gmail.com wrote: What is your suggestion? -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28133755.html Sent from the Wicket - User mailing list archive at Nabble.com

Click link

2010-04-03 Thread Mathias Nilsson
Hi, I have a a listview in a form that contains cart items. Every list view item has quantity textfield and ajaxsubmitlink. Now I want to add a behavior that enables enter keypress for the textfield. public abstract class KeyEnterBehavior extends AjaxFormComponentUpdatingBehavior{ private

Re: Click link

2010-04-03 Thread James Carman
Move the logic in the onClick() into a helper method (that takes an AjaxRequestTarget) and just call that from the onUpdate() method? On Sat, Apr 3, 2010 at 11:17 AM, Mathias Nilsson wicket.program...@gmail.com wrote: Hi, I have a a listview in a form that contains cart items. Every list

Re: Click link

2010-04-03 Thread Mathias Nilsson
yes, I have done that but the it causes the page to post. I want the scroll to remain and no postback. -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28127729.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Click link

2010-04-03 Thread Mathias Nilsson
This happens in google Chrome and not opera and firefox. In IE7 It works but I get a noisy sound? -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28127746.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Click link

2010-04-03 Thread James Carman
this message in context: http://old.nabble.com/Click-link-tp28127635p28127729.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Hello everybody, I've just subscribed to this ml, and even thou I searched past mails about my problem, I couldn't find any hint. I have a page that's refreshing its components every n seconds using AbstractAjaxTimerBehavior. Among these components there's a list of links. If I try to click a

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
Is blocking the page with a veil while refreshing a valid solution? That way users could not click on links while the page is refreshing... Best, Ernesto On Thu, Oct 1, 2009 at 12:37 PM, Alessandro Novarini a.novar...@sourcesense.com wrote: Hello everybody, I've just subscribed to this ml,

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
I have a page that's refreshing its components every n seconds using AbstractAjaxTimerBehavior. Among these components there's a list of links. Would be nice if you apply AbstractAjaxTimerBehavior only to components that need to be updated. Than you don't get in trouble with your links... On

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Ernesto, Thanks for the quick reply, but maybe I haven't explained in an accurate way the problem. Please correct me if I'm wrong; I get that you're suggesting me to disable all the components after the user clicks on a link, and enabling them after the server sends back the response. Is it

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Pedro, Thank you. This is indeed a solution, but it would mean rewriting the whole application. There are lots of components that need to be refreshed, and adding to each of them the behavior don't seem trivial. I'll give it a try anyway. Thank you Ale On Thu, Oct 1, 2009 at 1:17 PM, Pedro

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
Hi, consider to use Wicket api like IVisitor to help keep your code clear On Thu, Oct 1, 2009 at 10:00 AM, Alessandro Novarini a.novar...@sourcesense.com wrote: Pedro, Thank you. This is indeed a solution, but it would mean rewriting the whole application. There are lots of components

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
What I suggested was the other way round... When the page is refreshing block it so that users can't click on a link while that is happening... And the way to block it could be using a veil (e.g. a transparent div layer with a loading icon) that does not allows the user to click on a link (the

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
Maybe this thread has information useful to you. http://www.nabble.com/How-to-tackle-Ajax-Flooding-td25216116.html#a25221503http://www.nabble.com/How-to-tackle-Ajax-%22Flooding%22-td25216116.html#a25221503 http://www.nabble.com/How-to-tackle-Ajax-%22Flooding%22-td25216116.html#a25221503 Ernesto

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Ok, thank you to everyone. I've made further investigation and I (think) can describe the problem: The refresh of the page is set to 3 seconds; The server takes 2 seconds to give the response back to the client; If the user clicks during the 2 seconds interval, the event is lost, and the dialog

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
You have to be very careful about what you are doing. Think about the following situation: 1-You have panel A that contains a panel B which in turn contains a check box. 2-Suppose panel B in recreated every time panel A is rendered (e.g. on onBeforeRendered()). 3-The state of the check box depends