Tuesday December 14, 2004
Edward Burns's WeblogEdward Burns's Weblog The basics of rendering XHTML with JavaServer Faces (Brief) graham_s wrote in the JSF Forum: "Is there any way to make jsf render as valid xhtml?" I thought it best to answer graham_s's question in a blog entry, since this topic comes up frequently. Short answer: everything rendered by the Faces standard renderkit conforms to the following XHTML practices:
Now, to go the last mile, you have to make some changes to your pages on your own, since they're outside the scope of Faces. These changes are detailed in the excellent, brief, XHTML Tutorial at w3schools.com.
If these changes are not sufficient to make your Faces application XHTML compliant, please post to the forum and we'll file a bug! I'm not allowing a talkback because I want to keep the discussion in the forum. (2004-12-14 08:58:35.0) Permalink Comments [2]Post a Comment: Comments are closed for this entry. |
Calendar
RSS Feeds
All /General /Java /Music SearchLinks
NavigationReferersToday's Page Hits: 35 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Many thanks for this (I was the original author of the forum post).
Generally, I quite like dropping the pages I've produced into the w3c validator, which is where this came up.
If I take a page with otherwise validates as xhtml transitional and add:
<h:inputText id="y" value="#{Bean001.y}" validator="#{Bean001.validate}" />I get out:
This tag is not closed, and so the validator rejects the page. This is using the 1.1_01 JSF version.
Graham
Posted by Graham Stark on December 16, 2004 at 05:16 AM PST #
Posted by Ed Burns on December 16, 2004 at 08:07 AM PST #