]
Ilya Shaikovsky resolved RF-7228.
---------------------------------
Resolution: Rejected
Assignee: Alexander Dubovsky
Wrong usage.
rich:page encodes full page structure:
Doctype..
html
head
body
...
So together with the html tags you defined on the page you got nested html, body, elements
and duplicated doctype declaration.
<rich:page> doesn't work on Safari4 and Google Chrome
-----------------------------------------------------
Key: RF-7228
URL:
https://jira.jboss.org/jira/browse/RF-7228
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: Windows XP Pro
Google Chrome 2.0.172.28
Safari4 Public Beta 528.16
Sun JavaEE SDK 5.07
Apache Tomcat 6.0.18
Reporter: Scott Langley
Assignee: Alexander Dubovsky
I narrowed this down to a rather simple test case.
This page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<head><title>Rich Page Test</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<rich:page>
Test
</rich:page>
</body>
</html>
Yields, on Google Chrome:
This page contains the following errors:
error on line 9 at column 9: internal error
Below is a rendering of the page up to the first error.
Page source as viewed in Chrome Browser:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head><title>Rich Page Test</title>
<link class="component"
href="/ELISpotPlateDesigner/a4j/s/3_3_1.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"
rel="stylesheet" type="text/css" /><link
class="component"
href="/ELISpotPlateDesigner/a4j/s/3_3_1.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"
media="rich-extended-skinning" rel="stylesheet"
type="text/css" /><link class="component"
href="/ELISpotPlateDesigner/a4j/s/3_3_1.GAcss/page.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"
rel="stylesheet" type="text/css" /><script
type="text/javascript">window.RICH_FACES_EXTENDED_SKINNING_ON=true;</script><script
src="/ELISpotPlateDesigner/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.jsf"
type="text/javascript"></script><meta
http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en_US"
xmlns="http://www.w3.org/1999/xhtml"><head><title&g...
type="text/css">
<![CDATA[
.rich-page{margin:auto 10px;width:auto;}
.rich-page-body{float:none;width:auto;}
]]>
</style></head><body><div class="rich-page "
id="j_id2"><div class="rich-page-content "
id="j_id2:cnt"><div class="rich-page-main"><div
class="rich-page-body ">
Test</div></div></div></div></body></html>
</body>
</html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: