You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ya...@cabm.rutgers.edu on 2006/02/21 15:28:45 UTC

Question for commandButton/commandLink onClick calling javascript

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'


Re: Question for commandButton/commandLink onClick calling javascript

Posted by Yasushi Okubo <ya...@cabm.rutgers.edu>.
Bruno Aranda wrote:

>You have to use "onclick" (case-sensitive),
>
>Regards,
>
>Bruno
>  
>
Thanks Bruno
I should have been more careful.
Thanks again,
yasushi

>On 2/21/06, yasushi@cabm.rutgers.edu <ya...@cabm.rutgers.edu> 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'
>>
>>
>>    
>>


Re: Question for commandButton/commandLink onClick calling javascript

Posted by Bruno Aranda <br...@gmail.com>.
You have to use "onclick" (case-sensitive),

Regards,

Bruno

On 2/21/06, yasushi@cabm.rutgers.edu <ya...@cabm.rutgers.edu> 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'
>
>