I would like to make a custom component 'foo' with an attribute called 'bar'.
In JSF 2.2 I can make the Component class in Java without any taglib file:
@FacesComponent(tagName = "foo", createTag = true)
public class Foo {
@WhatShouldIUseHere(required = true, description = "example attribute")
public Object getBar() { ... }
}
But I have problem with the bar attribute. Are there any annotation exists, which I can set required, description and other properties like in the taglib xml?