[
https://jira.jboss.org/jira/browse/JBIDE-5642?page=com.atlassian.jira.plu...
]
Yura Zhishko commented on JBIDE-5642:
-------------------------------------
Doctype declaration in primefaces-i.taglib.xml and primefaces-p.taglib.xml contains
"\n" inside:
<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet
Taglib 1.0//EN" "facelet-taglib_1_0.dtd">
So the function:
public static final String DOC_PUBLICID = "-//Sun Microsystems, Inc.//DTD Facelet
Taglib 1.0//EN";
public static final String ENT_FACELET_TAGLIB = "FileFaceletTaglib";
public String getEntityName(String ext, String body) {
if (body == null) return null;
if (body.indexOf(DOC_PUBLICID) > 0) return ENT_FACELET_TAGLIB;
return null;
}
in FaceletTaglibEntityRecognizer returns wrong result and a simple xml object will be
created instead of FileFaceletTaglib. And that is way it isn't shown in WebProjects
view. So, we should provide a better mechanism to check doctypes.
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: Yura Zhishko
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