[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5642) Taglibs defined in JAR files as facelets *.taglib.xml are not recognized in Web Projects View in Tag Libraries folder.

Oleg Varaksin (JIRA) jira-events at lists.jboss.org
Mon Jan 11 15:13:31 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12503474#action_12503474 ] 

Oleg Varaksin commented on JBIDE-5642:
--------------------------------------

Hello Maxim.

Exactly. That is the simplest test. Since JSF 2 facelets is the standard view technology and not JSP. That means recognizing of *.taglib.xml's has a higher priority than recognizing of TLDs. Of course, autocompletion will be achieved a little bit more difficult because *.taglib.xml doesn't provide available attributes. Facelets technology uses Java reflection to find out tag attributes. You have to find out tag attribites by using reflection on component / converter / validator classes.

I'm waiting for CR2 :-) Could you say please when it will be available approximately? An directly import from JBoss Tools Palette without creating a (dummy) web project and drag-and-drop tag libraries would be very desired too!

Thanks a lot in advance!

> Taglibs defined in JAR files as facelets *.taglib.xml are not recognized in Web Projects View in Tag Libraries folder.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-5642
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5642
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 3.1.0.CR1
>         Environment: Eclipse 3.5 and higher, JBossTools 3.1.0.CR1, OS Windows XP and higher
>            Reporter: Oleg Varaksin
>            Assignee: Maxim Areshkau
>             Fix For: 3.1.0.CR2
>
>         Attachments: 1.jpg, custom-taglib-xml-notrecognized.jpg, jsf-jar-in-classpath.jpg, jsf-jar-project.jpg
>
>
> If we have some JAR files in classpath of web project which contain *.taglib.xml files (under META-INF) they will be not recognized by JBoss Tools. I have imported such JAR as described in the related issue https://jira.jboss.org/jira/browse/JBIDE-4213. TLDs have been well recognized (displayed under Tag Libraries folder), but *.taglib.xml files not. There are no chances to add them to the JBoss Tools Palette.
> Note 1: *.taglib.xml files from external JARs don't have to be added in web.xml. That means, javax.faces.FACELETS_LIBRARIES is not needed in web.xml. JSF scans automatically META-INF folder of all JARs in classpath.
> Note 2: *.taglib.xml files should be also recognized in JAR project itself if we implement JSF 2 custom components in this JAR project (which reside under META-INF/resources/...) and want to add xmlns namespaces from *.taglib.xml's in some *.xhtml files. At the moment it's not possible and there isn't code autocompletion.
> This issue is very important for JSF 2.x.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list