jsf - How are PrimeFaces custom components registered in their JAR, I'm not seeing @FacesComponent and taglib.xml -
i have downloaded sources of primefaces 3.5 learning purposes. have no idea how primefaces components registred. tutorials , books learned, in order register custom component, component class must annotated @facescomponent. additionaly, tag must defined in taglib.xml file.
in primefaces source code, component classes doesn't have annotations , can't find taglib.xml file.
how registred?
they're registered in /meta-inf/faces-config.xml , /meta-inf/primefaces-p.taglib.xml of primefaces library jar file (thus not source jar file!). files autogenerated during library jar build process , that's why don't appear in source jar file.
note <component> registrations in /meta-inf/faces-config.xml equivalent @facescomponent annotation.
Comments
Post a Comment