title: Custom validator with attributes in facelets
body: <p>I have written a custom Validator that expects an attribute to be set. I know I have to write a Handler (TagHandler or ValidatorHandler?) to set that attribute, but I am having trouble doing it.</p>
  
  <pre><code>&lt;tag&gt;
      &lt;tag-name&gt;validateCustom&lt;/tag-name&gt;
      &lt;validator&gt;
          &lt;validator-id&gt;package.CUSTOM_VALIDATOR&lt;/validator-id&gt;
      &lt;/validator&gt;
  &lt;/tag&gt;
  </code></pre>
  
  <p>Where do i put the <code>handler-class</code> element? And how do I write the handler so that it will pass the attributes to my custom validator?</p>
  
  <p>Thanks in advance!</p>