JSF composite component custom taglib namespace

Answered

Hi, I have a problem with custom namespace and composite library in jar in intellij idea (2017.1.3)

I've created a jar with custom namespace and composite library in taglib like that:

(Repositor for reference: https://bitbucket.org/JarekW/jsf-composite-library/src)

<facelet-taglib version="2.2">
<namespace>http://example.com/jsf/collections/composite</namespace>
<composite-library-name>mylibrary</composite-library-name>
</facelet-taglib>

Then i have uploaded it to my private nexus repository. And now i want to use it in other project as a dependency in pom.xml.

Idea fetch that dependency nicely:

But when i want to use in in JSF file it complain about unresolved symbol like this:

It finds the taglib, because when i click in namespace with the control key it shows taglib file:

"mylibrary" is in red, but i think i have place it in right directory (META-INF/resources/mylibrary  1st screen)

When i deploy it to jee server (payara) it works, only intellij is compaining. How can I fix this? Maybe some settings that i don't know?

 

4
5 comments
Avatar
Permanently deleted user

Thanks Serge, also found similar: https://youtrack.jetbrains.com/issue/IDEA-118353

1
Avatar
Permanently deleted user

Hello, Serge!

Is it  (I mean https://youtrack.jetbrains.com/issue/IDEA-166690) acually the same issue? I also have composite component resolution error in IntelliJ IDEA 2017.2 EAP (for components, placed in library). But this is reproduced only when using custom namespace. With default namespace (http://xmlns.jcp.org/jsf/composite/...) everithing works just fine (despite the fact that the components are located in META-INF/resources/...).

1

Hello,

Are there any progress on this issue ?

thanks

1

I'm having same problem. Ist there a workaround? I've read about TLD file, how to make one and where to put it?

EDIT:

So i've followed the TLD solution and this link was helpful. IDEA now resolves tags and attributes, but it is addional work.

https://developer.jboss.org/thread/182948

1

Please sign in to leave a comment.