Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 88959 invoked from network); 10 May 2006 13:12:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 13:12:54 -0000 Received: (qmail 5194 invoked by uid 500); 10 May 2006 13:12:29 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 5144 invoked by uid 500); 10 May 2006 13:12:29 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 5133 invoked by uid 99); 10 May 2006 13:12:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 06:12:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gilles.demarty@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 06:12:28 -0700 Received: by py-out-1112.google.com with SMTP id f28so1928667pyf for ; Wed, 10 May 2006 06:12:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QWKjVt/EpD2s2gk/LBxUm2lkyd4Hz2d0BkgkHzPu5xvIiB09J3NLCOVY3yrKiwj69gSHZ3fESNmAcTBxQFyQbeadEIa6HHwMxbGc6aWxwEBj5f+R+xi/Sjyd3iGoYbMtUdkOnAprRrDzvVZKbT3/owwLdWO+AWzRMpE3UWdZ9Hw= Received: by 10.35.111.7 with SMTP id o7mr2962389pym; Wed, 10 May 2006 06:12:07 -0700 (PDT) Received: by 10.35.22.4 with HTTP; Wed, 10 May 2006 06:12:07 -0700 (PDT) Message-ID: <2108a7950605100612i17bdfd12w98aede6b84e5ac8b@mail.gmail.com> Date: Wed, 10 May 2006 15:12:07 +0200 From: "Gilles DEMARTY" To: "MyFaces Development" Subject: Re: Confirm JSF button click In-Reply-To: <4314800.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4306886.post@talk.nabble.com> <6dac79b90605091320p3207c290yf8defb87ee4c8dc5@mail.gmail.com> <8f985b960605091402y6524756u9313ca390f59091@mail.gmail.com> <4314800.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi guys, > Is it possible to have a confirm popup (for example use javascript confir= m) > on a button created with a JSF impementation, e.g. MyFaces, Tomahawk. The > functionality I am looking for is that the user can click a button to clo= se > the browser window, but he must confirm it by click OK on the popup or > Cancel if he does not want to close the window. What about create a that would use a dojo modal Dialog widget [1] to remplace this ugly alert() or confirm() window. It would look more pro and "Ajax-Dojo-enabled"(or whatever the buzz word is), would looks the same in all the browsers and fills all the requirements. [1] http://archive.dojotoolkit.org/nightly/tests/widget/test_Dialog.html my $ .02 Gilles 2006/5/10, Pich : > > Thanks a lot, it works nice for the commandButton. However, I would like = to > have the same behaviour on a commandLink, but I can't get that to work. I= s > it possible to do that with a link (instead of a button)? > -- > View this message in context: http://www.nabble.com/Confirm-JSF-button-cl= ick-t1586986.html#a4314800 > Sent from the My Faces - Dev forum at Nabble.com. > >