简体   繁体   English

我可以在jsf(.xhtml)中使用HTML5标签吗

[英]Can I use HTML5 tag in jsf(.xhtml)

I want to use some HTML5 tag in jsf file, such as , and so on, but it doesn't work because the suffix of jsf file is .xhtml. 我想在jsf文件中使用一些HTML5标记,例如,等等,但由于jsf文件的后缀是.xhtml,所以它不起作用。 Is there any possible to use HTML5 tag in jsf file?? jsf文件中可以使用HTML5标签吗?

First, is it the issue of file extension or the version of JSF that hinders you from using the HTML5 tag? 首先,是文件扩展问题还是JSF版本阻碍了您使用HTML5标签?

There are some HTML5 features the previous JSF components don't support out of the box. 以前的JSF组件不支持某些HTML5功能。 You ma yuse a library like Omnifaces . 您可能需要像Omnifaces这样的库。
If you are using JSF 2.2, it is already support HTML5. 如果您使用的是JSF 2.2,则它已经支持HTML5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM