Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

adf faces and xhtml

483078May 7 2006 — edited May 7 2006
I'm trying to generate xhtml 1 strict html pages using adf faces, but it doesn't seem to work correctly. What do i need to do to make it work?

For example, the following jsf file:

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
<f:view>
<afh:html>
<jsp:output omit-xml-declaration="false" doctype-root-element="html"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<afh:head title="Edit country">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</afh:head>
<afh:body>
<h:form>
<af:inputText label="Label 1"/>
</h:form>
</afh:body>
</afh:html>
</f:view>
</jsp:root>

Will generate an html document with 2 Doctypes, one for xhtml 1 strict and 1 declaring it html 4 loose. The page doesn't conform to xhtml, the input tag for example isn't closed.

I also noticed that draging and dropping data controls on an xhtml jsf page doesn't work. You need to declare it as html 4 transitional to make drag and drop work.

Another issue: i'm using the minimal skin. This skin generates invalid css files. For example, the selector for the body tag is in uppercase, but the tag itself is in lowercase. Css selectors are case sensitive, which means that the css file doesn't work in firefox.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2006
Added on May 7 2006
2 comments
449 views