Currently i am also evaluating JTidyServlet, but currently i do not have
that special case. Guess that if your html is prepared to be
xml-conform, not having a <html> element is of no interest to JTidy. I
am interested in your findings so please keep us updated. BTW What's
your current JTidy config esp. the config parameters? - My current JTidy
config is :
<filter>
<filter-name>JTidyFilter</filter-name>
<filter-class>
org.w3c.tidy.servlet.filter.JTidyFilter
</filter-class>
<init-param>
<param-name>tee</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>
tab-size=4;wrap:5000;output-xhtml:true;
</param-value>
</init-param>
<init-param>
<param-name>doubleValidation</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>validateOnly</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>doubleValidation</param-name>
<param-value>false</param-value>
</init-param>
</filter>
Matthias Kahlau wrote:
AFAIK most browsers do wrap content with HTML tags in case content does
not self set html...body. Guess you can inspect that by looking in the
DOM inspector in Mozilla/Firefox after browsing to such "special"
html-pages.
In my special case, the rendered code has to go to the JTidy filter of
UPortal, which transforms the HTML code to XHTML (AFAIK). I don't know if
JTidy is capable to transform incomplete HTML pages...
Regards,
Matthias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag
von Jörg Liegler
Gesendet: Montag, 6. Februar 2006 01:05
An: 'MyFaces Discussion'
Betreff: AW: Programmatically created UI does not contain important HTML
elements
AFAIK most browsers do wrap content with HTML tags in case content does
not self set html...body. Guess you can inspect that by looking in the
DOM inspector in Mozilla/Firefox after browsing to such "special"
html-pages.
Jörg
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 5. Februar 2006 16:48
An: Users MyFaces
Betreff: Programmatically created UI does not contain important HTML
elements
Hi!
I examined the HTML source code of my programmatically build view and
noticed, that no HTML elements like <html> or <head> are rendered, but I
wonder because the page is rendered correctly in MS IE.
Do I have to manually add the missing elements, e. g. with the
ResponseWriter? (I need valid HTML...)
Regards,
Matthias