Re: How to handle double clicks on commandButtons

2006-12-07 Thread Martin Grotzke
On Thu, 2006-12-07 at 16:03 +0200, Mert Çalışkan wrote: > Yes.. > > Use a hashmap for this and put the tokens with a keyVal for each page, > e.g. with viewId. Yes, that's it, thanx! > > And there is also another concern..Ajax frameworks...A workaround for > AjaxAnywhere can be stated like thi

Re: How to handle double clicks on commandButtons

2006-12-07 Thread Mert Çalışkan
Yes.. Use a hashmap for this and put the tokens with a keyVal for each page, e.g. with viewId. And there is also another concern..Ajax frameworks...A workaround for AjaxAnywhere can be stated like this: For an AA request, requestHeaderMap contains a value with the key, aaxmlrequest. So check for

Re: How to handle double clicks on commandButtons

2006-12-07 Thread Martin Grotzke
Hi Mert, On Wed, 2006-12-06 at 22:30 +0200, Mert Çalışkan wrote: > Briefly, > > - A phaselistener that checks the session for a uniqueToken. If there > is none, generates a new one and stores it in session. If there is > one, checks the equality of that one with the one submitted with form. > -

Re: How to handle double clicks on commandButtons

2006-12-06 Thread Simon Kitching
Charbel Abdul-Massih wrote: What’s the best way to handle double clicks on buttons in JSF??? If your application only uses request-scope beans, then I suggest just allowing the double clicks; two requests will be sent and processed. The user receives the output of the last one. This does allo

Re: How to handle double clicks on commandButtons

2006-12-06 Thread Zhi
: Thursday, December 07, 2006 4:30 AM Subject: Re: How to handle double clicks on commandButtons Briefly, - A phaselistener that checks the session for a uniqueToken. If there is none, generates a new one and stores it in session. If there is one, checks the equality of that one with the

Re: How to handle double clicks on commandButtons

2006-12-06 Thread Mert Çalışkan
Briefly, - A phaselistener that checks the session for a uniqueToken. If there is none, generates a new one and stores it in session. If there is one, checks the equality of that one with the one submitted with form. - An extended formRenderer that renders the session-scoped-uniqueToken as the hi

Re: How to handle double clicks on commandButtons

2006-12-06 Thread Mike Kienenberger
You could also install a servlet filter that serializes all requests for the same session. There are probably other thread-safety issues when processing multiple requests simulaneously for the same session under JSF 1.1. You'd still need to work through the double-click detection, but it'd be e

Re: How to handle double clicks on commandButtons

2006-12-06 Thread Adrian Mitev
Shale has component s:token that could handle double submit. 2006/12/6, Charbel Abdul-Massih <[EMAIL PROTECTED]>: What's the best way to handle double clicks on buttons in JSF??? Thanks, Charbel

How to handle double clicks on commandButtons

2006-12-06 Thread Charbel Abdul-Massih
What's the best way to handle double clicks on buttons in JSF??? Thanks, Charbel