title: JSF Trinidad Image tag replace broken images
body: <p>I'm using JSF with Trinidad tag </p>
  
  <p>I was wondering how can I catch error event like in html img tag</p>
  
  <pre><code>&lt;img src="someimage.png" onerror="imgError(this);"/&gt;
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;tr:image source="/../myImage.png"&gt;
  </code></pre>
  
  <p>So , I will be able to replace the image with error image.</p>
  
  <p>Thanks,</p>
  
  <p>Jhon.</p>