[jbosstools-issues] [JBoss JIRA] (JBIDE-12990) Weird XML validation errors for JSF facelet template
Viacheslav Kabanovich (JIRA)
jira-events at lists.jboss.org
Tue Jul 2 14:59:20 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-12990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787061#comment-12787061 ]
Viacheslav Kabanovich commented on JBIDE-12990:
-----------------------------------------------
Eclipse XML Validator is mapped to *.xml files so it takes to validate file blog-web/src/main/webapp/index.xml. But content of index.xml is a mixture of xml and xhtml. It declares root node f:view with namespace xmlns:f="http://java.sun.com/jsf/core" which should be used under xhtml doctype.
I suggest to introduce a new extension, e.g. index.seamxml, which would not be mapped to Eclipse XML Validator. New extension may be registered in context-param javax.faces.FACELETS_VIEW_MAPPINGS in web.xml instead of *.xml.
> Weird XML validation errors for JSF facelet template
> ----------------------------------------------------
>
> Key: JBIDE-12990
> URL: https://issues.jboss.org/browse/JBIDE-12990
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: upstream
> Affects Versions: 4.0.0.Beta1
> Environment: JBoss Developer Studio 6.0.0.Beta1
> Reporter: Marek Novotny
> Assignee: Viacheslav Kabanovich
> Fix For: LATER
>
>
> Importing http://anonsvn.jboss.org/repos/seam/branches/community/Seam_2_3/examples/blog/
> ends with a few weird errors for blog-web project.
> {noformat}
> Description Resource Path Location Type
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/target/m2e-wtp/web-resources line 1 XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/src/main/webapp line 1 XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'. index.xml /blog-web/target/m2e-wtp/web-resources line 7 XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/target/m2e-wtp/web-resources line 1 XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/target/blog-web line 1 XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'. index.xml /blog-web/src/main/webapp line 7 XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/src/main/webapp line 1 XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'. index.xml /blog-web/target/blog-web line 7 XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml). For more information, right click on the message in the Problems View and select "Show Details..." index.xml /blog-web/target/blog-web line 1 XML Problem
> {noformat}
> Basically there are 3 types of error:
> 1. it say f:view tag definition cannot be found
> 2. definition of jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml is not valid
> 3. definition of jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml is not valid
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list