sorry you talk about a commandLink...

Bruno

2005/9/7, Bruno Aranda <[EMAIL PROTECTED]>:
> The easiest way to do this is use a javascript function:
> 
> function askConfirmation(confirmationQuestion){
>       if (confirm(confirmationQuestion))
>               return true;
>       return false;
> }
>  and in your commandButton use the onclick attribute like this:
> 
> <h:commandButton ... onclick="return
>  askConfirmation('Are you sure?')" />
> 
> Regards,
> 
> Bruno
> 
> 2005/9/7, ::SammyRulez:: <[EMAIL PROTECTED]>:
> > is possible to add js confirmatino to a command link?
> >
> > I add the  attribute onclick="return(confirm('Are you sure?'))" to may
> > commandLink.
> >
> > The comfirm window popup just fine, but after che commandLink action
> > is not performed
> >
> >
> > thanks
> >
> > --
> > ::SammyRulez::
> > http://sammyprojectz.blogspot.com
> >
>

Reply via email to