title: Generate taglib automatically from custom component
body: <p>I'm developing a JSF component library and I'm writing my components in the same way it's taught in the <a href="http://docs.oracle.com/javaee/7/tutorial/jsf-custom.htm#BNAVG" rel="nofollow">Java EE 7 Tutorial</a>.</p>
  
  <pre><code>@FacesComponent("DemoMap")
  public class MapComponent extends UICommand {
      enum PropertyKeys {
          alt, coords, shape, targetImage;
      }
      public String getAlt() {
          return (String) getStateHelper().eval(PropertyKeys.alt, null);
      }
      public void setAlt(String alt) {
          getStateHelper().put(PropertyKeys.alt, alt);
      }
  }
  </code></pre>
  
  <p>I want to know if there's any way to generate the custom component taglib (or at least the attributes part) automatically.</p>
  
  <p>I feel it's a little annoying having to declare the attributes in the component class and then again in the taglib file.</p>