OK - I understand. Have anyone else successfully configured myfaces to
generate PRETTY_HTML output which shows up nicely in a browser's "View
Source" tool?
I now even tried copying the output into another editor - same result:
All markup is on a single line except the script statements (as
mentioned earlier).
Randahl
Daniel Zwink wrote:
Hi,
sorry
for the reply without text - accidently
used a shortcut which sent the email. I'm not really
familiar with Outlook as MTA, but have to use it :-/.
Randahl:
After I had sent my reply I noticed my mistake. Of course I meant
"below".
Your
right with the understanding of PRETTY_HTML. My point was, that my
email client shows pretty html as result (your "MY RESULT OUTPUT"). That's why I
assumed an editor problem.
Daniel
Randahl
Fink Isaksen wrote:
(Note to Daniel: Did you intend to send an image? You wrote
"as you can see aboe", but there was nothing above your statement.)
Anyway I checked the generated output using Mozilla FireFox and the
"View>Page Source" menu item as well as Internet Explorer and the
"View>Source" menu item.
Mozilla FireFox shows the page's source in its own editor - all tags
are on a single line.
Internet explorer shows the page's source in notepad - all tags are on
a single line.
I thought the whole point of PRETTY_HTML was to make the html readable
using tools like this. Am I right?
Randahl
Daniel Zwink wrote:
Hi Randahl,
seems as if it's an editor problem?! As you can
see above my mail client shows pretty html. You better try another
editor to look into the generated html sources.
Randahl
Fink Isaksen wrote:
<!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" lang="en" xml:lang="en"><head><title>Test Page</title></head><body><h2>Test</h2><p>Paragraph</p><form id="responseForm" name="responseForm" method="post" action="/puls/rendering/master.jsf" enctype="application/x-www-form-urlencoded"><input id="responseForm:back" name="responseForm:back" type="submit" value="Back" onclick="clear_responseForm();document.forms['responseForm'].elements['autoScroll'].value=getScrolling();"/><input type="hidden" name="responseForm_SUBMIT" value="1"/><input type="hidden" name="autoScroll"/><input type="hidden" name="responseForm:_link_hidden_"/><script type="text/_javascript_">
<!--
function clear_responseForm() {
var f = document.forms['responseForm'];
f.elements['responseForm:_link_hidden_'].value=null;
f.target='';
}
clear_responseForm();
//-->
</script></form></body></html>
<script type="text/_javascript_">
<!--
function getScrolling() {
var x = 0; var y = 0;
if (document.body && document.body.scrollLeft && !isNaN(document.body.scrollLeft)) {
x = document.body.scrollLeft;
} else if (window.pageXOffset && !isNaN(window.pageXOffset)) {
x = window.pageXOffset;
}
if (document.body && document.body.scrollTop && !isNaN(document.body.scrollTop)) {
y = document.body.scrollTop;
} else if (window.pageYOffset && !isNaN(window.pageYOffset)) {
y = window.pageYOffset;
}
return x + "," + y;
}
window.scrollTo(0,0);
//-->
</script>
MY ORIGINAL PAGE:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0"
>
<jsp:output
doctype-root-element="html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
/>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<html xmlns="http://www.w3.org/1999/xhtml"" xml:lang="en"
lang="en">
<head>
<title>Test Page</title>
</head>
<body>
<h2>Test</h2>
<p>Paragraph</p>
<h:form id="responseForm">
<h:commandButton id="back" value="Back"
action=""/>
</h:form>
</body>
</html>
</f:view>
</jsp:root>
Greets, Daniel Zwink
--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel +49(0)621-71839-0
Fax. +49(0)621-71839-50
|