incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: command-button and confirmation
Date Tue, 17 Apr 2007 00:11:56 GMT
Something like:

<tr:commandButton onclick="return confirm('You sure?');" ..../>

should do the trick.

-- Adam


On 4/16/07, Jens Stegemann <jens.stegemann@gmx.de> wrote:
>
> Hi,
>
> I would like to add a confirmation dialog to a command button so that it
> asks
> me if am sure to continue before it fires the action. Has anybody here
> ever
> done something like that? Using Javascript it would be as easy as adding
> an
> if (confirm(...)) in front of the submit command. Unfortunately I am not
> able
> to find a way to do this. I am not even sure in which renderer the
> JavaScript
> part of a command-button is rendered....
>
> Thanks for any help in advance,
>
> Jens
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message