aspose file tools*
The moose likes JSF and the fly likes use html5 in facelets/jsf2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "use html5 in facelets/jsf2" Watch "use html5 in facelets/jsf2" New topic
Author

use html5 in facelets/jsf2

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I am using this in my server-side "index.xhtml" (I saved this file with suffix *.xhtml):



I am using this in my web.xml:



I get this warning from JSF when going to my browser and clicking "index.html":



When putting the needed xmlns to xhtml, then no warnings appears:



However, the rendered client-html looks like this (which is not clean html5-code):



instead of this (which is clean html5-code):



When changing my javax.faces.DEFAULT_SUFFIX to .html



and renaming my server-side-page to "index.html" (Now, I saved this file with suffix *.html),
then facelets cannot render the page at the client side. That means, the client gets the facelets-site without transforming it to appropriate (x)html.

Should I ignore the warnings or is there a better (clean) solution?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use html5 in facelets/jsf2
 
Similar Threads
[facelets] custom taglibrary not recognized
Primefaces setup causing problems JSF 2.0
Facelets custom tag not recognized ?
<f:ajax> tag not responding when adding trinidad jars
JSF, Facelets losing context after reload