Re: How to get PageClass from BufferedResponseRequestHandler ? And how to link related requests?

2014-06-17 Thread Martin Grigorov
Hi, You are correct! It seems org.apache.wicket.response.filter.ServerAndClientTimeFilter and the other similar filters lie because they use the current request cycle's begin time. And as I said the processing time when there is a buffered response should be quite small. I agree that the reported

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to link related requests?

2014-06-17 Thread Hendy Irawan
Thank you Martin! Filed https://issues.apache.org/jira/browse/WICKET-5621 Hendy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-PageClass-from-BufferedResponseRequestHandler-And-how-to-link-related-requests-tp4666247p4666286.html Sent from the Users forum

How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled or not, so I can mark my link as enabled or disabled (by calling setEnabled(command.isEnabled()) or overriding link.isEnabled() method). 1. Page is being rendered,

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Martin Grigorov
Hi, On Tue, Jun 17, 2014 at 4:55 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled or not, so I can mark my link as enabled or disabled (by calling

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
Hi, when you alter the enabled state in #onConfigure() - this is recommended instead of overriding #isEnabled() - the link will still be enabled when the next click comes in. You can handle the changed system state in your application logic. Best regards Sven On 06/17/2014 03:55 PM, Daniel

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:14 PM, Sven Meier s...@meiers.net wrote: Hi, when you alter the enabled state in #onConfigure() - this is recommended instead of overriding #isEnabled() - the link will still be enabled when the next click comes in. Hmmm, I think I don't understand :). The next

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:00 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Jun 17, 2014 at 4:55 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
Hi, The next click does not come because exception is raised. if the link is still enabled, which exception should be thrown then? Sven On 06/17/2014 04:24 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:14 PM, Sven Meier s...@meiers.net wrote: Hi, when you alter the enabled state in

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:27 PM, Sven Meier s...@meiers.net wrote: Hi, The next click does not come because exception is raised. if the link is still enabled, which exception should be thrown then? Sven Please read again steps 1,2,3 ;). Link is rendered as enabled in the browser (1),

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Martin Grigorov
On Tue, Jun 17, 2014 at 5:26 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Tue, Jun 17, 2014 at 4:00 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Jun 17, 2014 at 4:55 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a link (or ajax link) which

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
If you alter the enabled state of your links in #onConfigure(), they will still be enabled - even if the server state already changed. Sven On 06/17/2014 04:32 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:27 PM, Sven Meier s...@meiers.net wrote: Hi, The next click does not come

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
Background information: http://apache-wicket.1842946.n4.nabble.com/vote-release-Wicket-1-4-14-tp3056628p3063795.html http://wicketinaction.com/2011/11/implement-wicket-component-visibility-changes-properly/ Sven On 06/17/2014 05:15 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 5:08 PM,

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 5:08 PM, Sven Meier s...@meiers.net wrote: If you alter the enabled state of your links in #onConfigure(), they will still be enabled - even if the server state already changed. Sven Yes, you're right! I have investigated two scenarios just before your last answer :).

Submiting form on a stateless page creates form page twice

2014-06-17 Thread KotFilemon
Hello I used wicket to create small web application with search page. This page is called many times in single minute, that is why we use stateless page for smaller memory usage. On this page is stateless form with query text field and after submit user is redirected to the same page with

Re: Ajax Form Submit via jquery plugin / javascript

2014-06-17 Thread Paul Bors
Instead of calling form.submit() from your jQuery, call ${‘#someButtonID’}.click() or whatever, then register your event under the button’s onClick in Wicket. You can have that button shared, or you can write your own Behavior to submit the form via a hidden button (i.e.: X and Y coordinates