Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 85190 invoked from network); 26 Jan 2006 13:10:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jan 2006 13:10:52 -0000 Received: (qmail 60194 invoked by uid 500); 26 Jan 2006 13:10:48 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 60164 invoked by uid 500); 26 Jan 2006 13:10:48 -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 60152 invoked by uid 99); 26 Jan 2006 13:10:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 05:10:48 -0800 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 ffd@gmx.net designates 213.165.64.21 as permitted sender) Received: from [213.165.64.21] (HELO mail.gmx.net) (213.165.64.21) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 26 Jan 2006 05:10:47 -0800 Received: (qmail invoked by alias); 26 Jan 2006 13:10:25 -0000 Received: from p548FC771.dip.t-dialin.net (EHLO FFDDESK) [84.143.199.113] by mail.gmx.net (mp028) with SMTP; 26 Jan 2006 14:10:25 +0100 X-Authenticated: #1596821 From: "Frank Felix Debatin" To: "'MyFaces Discussion'" Subject: RE: How to do Javascript Alert when pressing a button in ADF/JSF Date: Thu, 26 Jan 2006 14:10:24 +0100 Organization: Bamboo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcYid+JQuSfmI1mKTAK8I2nkw+YFMgAAV5uQ In-Reply-To: X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060126131047.C8B9C10FB012@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Incredible! I would never have imagined that this works. JSF (and in my case ADF) includes the user's onclick javascript code in their generated onclick Javascript code. Really cool. Thanks a lot Enrique and Andreas for the tip! Regards Frank Felix ________________________________ From: Enrique Medina [mailto:e.medina.m@gmail.com] Sent: Thursday, January 26, 2006 1:56 PM To: MyFaces Discussion Subject: Re: How to do Javascript Alert when pressing a button in ADF/JSF Take a look at: http://wiki.apache.org/myfaces/JavascriptWithJavaServceFaces 2006/1/26, Debatin, Frank Felix < ffd@bamboo-ag.com>: Hello, we're a (very happy) user of ADF faces. There is one thing that we didn't find a solution for: User presses a button, let's say "delete". We want a message box to popup (Javascript alert?), that says something like "Are you sure to delete? Y/N", and then continue standard processing if the user answers yes (invoking the action). Any ideas? Did we maybe overlook something simple and straightforward? Is there the same problem in standard JSF? We are aware of the popup dialog features in ADF, but would like to avoid them for well-known reasons. Regards Frank Felix