The reason is that JSF requires that a commandLink's onClick attribute
be used for other things, like forcing a button submit. Your onClick
code would need to also perform the same tasks that the standard JSF
js performs. Do a view-source on a page with a CommandLink that has
no onClick attribute set by you, and it'll probably be clearer what's
going on.
On 9/7/05, ::SammyRulez:: <[EMAIL PROTECTED]> wrote:
> 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
>