I have tried to create new Facelets (JSF 1.2) component (using Java code). The component works perfectly, but the problem is, that I have no code completion for attributes in my IDE (Netbeans 6.9.1) for ihis tag. I think, that I am missing some part of configuration (in plain JSF there were tags for attributes, but I havent found them in for facelets config)....
Component:
public class MenuUIComponent extends UIComponentBase {
public void encodeBegin(FacesContext context) throws IOException {
// ...
}
}
Faces config:
<component>
<component-type>flexibla2.menu</component-type>
<component-class>cz.flexibla2.client.component.MenuUIComponent</component-class>
</component>
My taglib (flexibla2.taglib.xml)
<facelet-taglib>
<namespace>http://flexibla2/taglib</namespace>
<tag>
<tag-name>menu</tag-name>
<component>
<component-type>flexibla2.menu</component-type>
</component>
</tag>
</facelet-taglib>
Web xml
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/flexibla2.taglib.xml</param-value>
</context-param>
When I try to call to use my component
<flexibla2:menu root="#{clientPageBean.rootCategory}" />
The attribute root is market by IDE as not known (red uderscored) with error message: "The attribute root is not defined in component's interface"
Thanks for your help.