Something like:

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

should do the trick.

-- Adam


On 4/16/07, Jens Stegemann <[EMAIL PROTECTED]> 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

Reply via email to