0

I'm using JSF with Trinidad tag

I was wondering how can I catch error event like in html img tag

<img src="someimage.png" onerror="imgError(this);"/>

This is my code:

<tr:image source="/../myImage.png">

So , I will be able to replace the image with error image.

Thanks,

Jhon.

JohnSmith2
  • 47
  • 1
  • 11

1 Answers1

0

In my opinion the best solution is to point the source attribute to either a servlet or a method on a bean, and do some logic there.

Community
  • 1
  • 1
Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102