My custom components are currently declared in a custom taglib.xml file, and some of them need a handler, for example:
<tag>
<tag-name>mycomponent</tag-name>
<component>
<component-type>com.so.MyComponent</component-type>
<renderer-type>com.so.MyComponentRenderer</renderer-type>
<handler-class>com.so.MyComponentHandler</handler-class>
</component>
</tag>
Now I'd like to benefit from the new JSF 2.2 annotation-based declaration, writing:
@FacesComponent(value = MyComponent.COMPONENT_TYPE, tagName = "mycomponent", createTag = true)
public class MyComponent {
...but I can't figure out how to attach the component handler to this class. Is there any annotation for the handler class ?
Many thanks in advance!