Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 12935 invoked from network); 9 Sep 2010 14:20:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Sep 2010 14:20:46 -0000 Received: (qmail 34948 invoked by uid 500); 9 Sep 2010 14:20:46 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 34564 invoked by uid 500); 9 Sep 2010 14:20:42 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 34529 invoked by uid 99); 9 Sep 2010 14:20:41 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 14:20:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 14:20:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Othyp-0006E6-GN for users@myfaces.apache.org; Thu, 09 Sep 2010 07:19:59 -0700 Message-ID: <29648171.post@talk.nabble.com> Date: Thu, 9 Sep 2010 07:19:59 -0700 (PDT) From: Daniel Niklas To: users@myfaces.apache.org Subject: Re: AW: double click problem in JSF In-Reply-To: <13854210E74FC64FB501E585ADD28524011796FA@S2211ARV.de.arag.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: conti@dniklas.de References: <523907.53215.qm@web94816.mail.in2.yahoo.com> <86623.97099.qm@web94808.mail.in2.yahoo.com> <13854210E74FC64FB501E585ADD28524011796FA@S2211ARV.de.arag.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi, we have a solution for double clicks, too! We are using a token, to check requests on the serverside. On the client we are using the jquery UI-Plugin (http://jquery.malsup.com/block/). This is working verry good! The code that submits the form in trinidad is problematic. There are tests for more than one click within 500ms or something like that. That is error-prone. Because of that we are using the "event batches" mechanism in javascript. We have overridden the submit-function of trinidad to ensure, that only one request ist generated. (The request itself is done by trinidad...) For Details see http://dev.opera.com/articles/view/timing-and-synchronization-in-javascript/. Last but not least you can procuce double clicks when you use an with autoSubmit="true". The browser renders an system specific widget for the rendered option-element. You can not prevent to open the select-box with javascript! To resolve this problem we have written our own renderer, that renders custom html/css/javascript. Our solution is working very well now, but we have invested a lot of time for it! I hope, that at least this comment will help the community a little bit! Best regards Daniel -- View this message in context: http://old.nabble.com/double-click-problem-in-JSF-tp29569348p29648171.html Sent from the MyFaces - Users mailing list archive at Nabble.com.