我正在寻找有关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 ?
推荐答案我敢打赌,您正在谈论本文. h5标签库仅指向复合组件,其中包含了一些HTML5特定元素.复合组件只是Facelet文件,可以将其声明并用作其他页面中的单个JSF组件.甚至,完整的源代码都公开发布在文章的"JSF 2 HTML5 canvas组件"一章中.您只需将其复制粘贴到项目中即可运行.它不是像RichFaces/PrimeFaces这样的组件库,也不是您首先要下载,安装和配置的组件库.
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不在乎输出是XHTML还是HTML5.只要您遵循XML语法(即,文档必须始终为格式正确的),两者都是同等有效的.您可以在JSF页面/组件中完美内联HTML5特定的标记.您唯一关心的是浏览器支持.
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.
如果您的具体问题更多是缺乏对复合组件的用途及其工作原理的理解,那么我建议您逐步阅读Java EE 6教程的相应部分.
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.
- Java EE 6教程-第5章-Facelets-复合组件
- Java EE 6教程-第13章-高级复合组件
- Java EE 6 tutorial - Chapter 5 - Facelets - Composite Components
- Java EE 6 tutorial - Chapter 13 - Advanced Composite Components
- JSF 2.0,是否可以创建我自己的组件?
- 是否可以将HTML4/5与JSF/Facelets?
- JSF 2.0, is it possible to create my own component?
- Is it possible to use HTML4/5 with JSF/Facelets?
更多推荐
JSF HTML5标签教程/指南?
发布评论