Is it possible to use JSF+Facelets with HTML 4/5?

前端 未结 5 1170
心在旅途
心在旅途 2020-11-22 09:40

Facelets relies on XML namespaces to work with XHTML. How are HTML 4, and as far as I know, HTML 5 do not support namespaces. Also HTML 5 has some new elements that are not

5条回答
  •  佛祖请我去吃肉
    2020-11-22 10:35

    I've read, that this should be possible, but I did not do it myself, yet. Maybe you should just use HTML 5 inside the xHTML wrapper code. I will see, if I can find the source of information I've again.

    [EDIT] Seems like, there has been some work at MyFaces to support HTML5 rendering during Google's summer of code. I don't know if it should be used in a productive way, yet.

    • MyFaces Wiki
    • java-doc
    • Jazzon talk, download presentation
    • Jazzon talk, Exploring HTML 5 with JSF 2

    Please give us a feedback, if you get it to work. [/EDIT]

提交回复
热议问题