-
1. What the earth about XML namespace warning in rf4
ilya_shaikovsky Apr 18, 2011 4:23 AM (in response to feuyeux)how that related to RF 4? you just having some namespaces on the page which not present in the jars.
-
2. What the earth about XML namespace warning in rf4
feuyeux Apr 19, 2011 2:35 AM (in response to ilya_shaikovsky)Hi IIya,
Thanks for your reply, I add on the following code on the top of the global templet xhtml page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich">
And I don't totally understand your meaning. Before migration, I used rf3.3.3 and jsf1.2, then upgrade to rf4 and jsf2.0.
No code changed, why do I include the new jars?
The faces-config.xml is:
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
Would you please give me a solution for this issue?
This is the snapshot, I guess it's printed by jsf framework.
Thanks,
Lu Han
-
3. What the earth about XML namespace warning in rf4
liuliu Apr 19, 2011 3:04 AM (in response to feuyeux)hi,
in your warning, it says there is a <div: something in your page not referenced.
-
4. What the earth about XML namespace warning in rf4
feuyeux Apr 19, 2011 6:07 AM (in response to liuliu)Definitely, the xml mis-read the html tag.
But div and scrpit ... should not be included or declared.
-
5. What the earth about XML namespace warning in rf4
ilya_shaikovsky Apr 19, 2011 8:05 AM (in response to feuyeux)please show complete page code.
-
6. What the earth about XML namespace warning in rf4
feuyeux Apr 20, 2011 2:14 AM (in response to ilya_shaikovsky)Sorry, it's the company's code. And we use twice time template page, so if show them here, it's too big.
That's ok if you cannot find the solution from the existing info.
I hope the other people can provide the simple code when you encounter the same issue.
-
7. What the earth about XML namespace warning in rf4
ilya_shaikovsky Apr 20, 2011 4:57 AM (in response to feuyeux)the only I could add that I completelly agree with liumin hu. Somewhere on the pages you have <div:something> and <script:something> instead just <div some attributes> and <script>
-
8. What the earth about XML namespace warning in rf4
feuyeux Apr 21, 2011 1:56 AM (in response to ilya_shaikovsky)The same code work in rf3.3.3, there is no problem and I guarantee there is no div:
Letting go and maybe the answer will come here.
-
9. What the earth about XML namespace warning in rf4
feuyeux Apr 21, 2011 3:54 AM (in response to feuyeux)Hi IIya,
The answer comes.
As you said, the pom miss two jars. Thanks!
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
-
10. Re: What the earth about XML namespace warning in rf4
pomcompot Aug 23, 2011 5:16 AM (in response to feuyeux)Have tested your solution but it's not the way to go? taglibs:standard has nothing to do with the problem. It's clearly a lack of standard XHTMl namespace declaration (xmlns="http://www.w3.org/1999/xhtml"). Maybe you get it on your main page but not on the underlying component (composite or taglibs).