[jbosstools-issues] [JBoss JIRA] (JBIDE-22886) Unknown component error when using http://xmlns.jcp.org/jsf/composite instead of http://java.sun.com/jsf/composite
Viacheslav Kabanovich (JIRA)
issues at jboss.org
Mon Aug 8 20:21:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-22886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13276455#comment-13276455 ]
Viacheslav Kabanovich commented on JBIDE-22886:
-----------------------------------------------
For me, it works this way:
If the definition of a composite component tag declares
{code}
<html ... xmlns:composite="http://java.sun.com/jsf/composite">
{code}
then in order to access that tag a page should import the component as
{code}
<html ... xmlns:mycomp="http://java.sun.com/jsf/composite/mycomp">
{code}
Otherwise, if the definition of a tag declares
{code}
<html ... xmlns:composite="http://xmlns.jcp.org/jsf/composite">
{code}
then in order to access it the page should import the component as
{code}
<html ... xmlns:mycomp="http://xmlns.jcp.org/jsf/composite/mycomp">
{code}
If the folder mycomp has different tag definitions some of them with /xmlns.jcp.org/ and others with /java.sun.com/ it is possible to import all of them with two namespaces like
{code}
<html ...
xmlns:mycomp1="http://java.sun.com/jsf/composite/mycomp"
xmlns:mycomp2="http://xmlns.jcp.org/jsf/composite/mycomp">
{code}
Does this logic seems correct?
[~karlnicholas], please check if the issue is caused by an auto-build problem. I could not reproduce it, but please check, if clean/build of the project helps when reported warning is incorrect (provided the match of URI in the tag definition and the import as I have described).
> Unknown component error when using http://xmlns.jcp.org/jsf/composite instead of http://java.sun.com/jsf/composite
> ------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-22886
> URL: https://issues.jboss.org/browse/JBIDE-22886
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsf, jsp/jsf/xml/html-source-editing
> Affects Versions: 4.3.0.Final
> Environment: JBoss Developer Studio 9.0.1.GA. Windows 10. Java 8.
> Reporter: Karl Nicholas
> Assignee: Viacheslav Kabanovich
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> 1. Create a JSF 2.2 KickStart project with WildFly target server.
> 2. Create a composite component "mycomp.xhtml"
> 4. Import composite component with http://xmlns.jcp.org/jsf/composite/mycomp">
> 5. FAILURE: Unknown composite component "mycomp" in validation.
> 6. change to Import composite component with http://java.sun.com/jsf/composite/mycomp">
> 7. No validation, unknown composite component warning.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list