You have to use "onclick" (case-sensitive),

Regards,

Bruno

On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> My experts,
>
> I would like to call javascript to open a new window from
> commandLink/commandButton, but I see the following invalid error message.
> I am using myfaces1.1.1 stable version.  I searched mailing lists, but was
> not able to find much info.  By looking at the documentation, it should be
> able to support onClick attribute. I have struts-tiles.tld, but is it
> causing the problem ?
>
> Could someone advise me how to resolve this ?  I tried both tlds <h: > and
> <t: >, but no difference.
>
> Thanks,
> yasushi
>
> [ServletException in:/tiles/targetDataTable.jsp]
> /tiles/targetDataTable.jsp(95,16) Attribute onClick invalid for tag
> commandButton according to TLD'
>
>

Reply via email to