Where is the taglib definition of PrimeFaces 4?

Posted by Michael Wölm on Stack Overflow See other posts from Stack Overflow or by Michael Wölm
Published on 2013-10-25T12:01:52Z Indexed on 2013/10/26 9:54 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

I am looking around how to define custom components in JSF. According to the Java EE tutorial, any custom component needs to be described in a taglib. When I take a look into the PrimeFaces source, I cannot find any taglib file or any hint where the namespace is bound and the available components are defined. I am adding primefaces jar to my dependencies, adding

xmlns:p="http://primefaces.org/ui

to the xml namespace, defining some primfaces components on my page and it works...

Ok, but neither I can find the related taglib in the source or binary package nor my IDE (IntelliJ) is able to find where "xmlns:p="http://primefaces.org/ui" is pointing to. Therefore, code completion is also not possible. (all other mojarra taglibs are found.)

Is it possible that PrimeFaces is defining the taglib via annotations directly in Java classes or is it generating it during runtime? I can easily find the UIComponents, primefaces defines in its source, but the configuration of the taglib seems to be missing. I am sure I just don't know how PrimeFaces is doing it, but the javaeetutorial is not describing any other opportunity than defining a ...-taglib.xml

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf-2