You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Martin Denham <mj...@gmail.com> on 2006/05/26 15:25:56 UTC

af:objectIcon onclick handler not called

My onclick handler is being ignored when set on an objectIcon.  I
don't think I am doing anything wrong.

<af:objectIcon name="info" onclick="alert('in here')"/>

This is what is generated:
<img id="_id54" src="/mysite/adf/images/oracle/info.gif" border="0"
height="16" width="16">

Thanks

Martin

Re: af:objectIcon onclick handler not called

Posted by Gabrielle Crawford <ga...@oracle.com>.
Try wrapping it in a panelGroup and setting onclick on the panelGroup as 
a workaround.
If that works then this is probably a bug and you can file an issue.

Thanks,

Gabrielle

Martin Denham wrote:

> My onclick handler is being ignored when set on an objectIcon.  I
> don't think I am doing anything wrong.
>
> <af:objectIcon name="info" onclick="alert('in here')"/>
>
> This is what is generated:
> <img id="_id54" src="/mysite/adf/images/oracle/info.gif" border="0"
> height="16" width="16">
>
> Thanks
>
> Martin