This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use html5 in facelets/jsf2

 
nimo frey
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic