JSF HTML5 标签教程/指南?
我正在寻找有关 JSF 的 HTML5 标签 H5 的更多阅读内容。我看过 IBM 的 JSF 2 fu 文章,但除了有关“html5 的承诺”等的演示文稿和幻灯片之外,还没有真正看到其他内容。
谁能推荐一些推荐的技术读物?
I'm on the hunt for some more reading on JSF's HTML5 tag H5. I saw IBM's JSF 2 fu articles on it , but haven't really seen much else except presentations and slide shows on 'the promises of html5' and such.
Can anyone suggest some recommended technical reading ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我敢打赌,您正在谈论这篇文章 。
h5
标签库仅指向包装一些 HTML5 特定元素的复合组件。复合组件只是 Facelet 文件,可以在其他页面中声明并用作单个 JSF 组件。更重要的是,完整的源代码在本文的“JSF 2 HTML5 canvas 组件”一章中公开发布。您只需将其复制粘贴到您的项目中即可运行。它不是像 RichFaces/PrimeFaces 或任何您必须首先下载、安装和配置的组件库。JSF 不关心输出是 XHTML 还是 HTML5。只要您遵守 XML 语法(即文档必须始终格式良好),两者都同样有效。您可以在 JSF 页面/组件中完美内联 HTML5 特定标签。您唯一关心的是浏览器支持。
如果您的具体问题更多的是缺乏对复合组件的用途及其工作方式的理解,那么我建议您自己完成 Java EE 6 教程的相应部分。
另请参阅:
I'll bet that you're talking about this article. The
h5
taglib just points to composite components which wraps some HTML5 specific elements. Composite components are just Facelet files which can be declared and used as a single JSF component in other pages. Even more, the full source code is posted in public in chapter "A JSF 2 HTML5 canvas component" of the article. You just have to copypaste it into your project to get it to run. It's not some component library like RichFaces/PrimeFaces or whatever which you have to download, install and configure first.JSF doesn't care if the output is XHTML or HTML5. Both are equally valid as long as you adhere the XML syntax (i.e. the document must always be well-formed). You can perfectly inline HTML5 specific tags in JSF pages/components. Your only concern is the browser support.
If your concrete problem is more the lack in understanding of the purpose of composite components and how they work, then I'd suggest to get yourself through the appropriate sections of the Java EE 6 tutorial.
See also: