JSF HTML5标签教程/指南? [英] JSF HTML5 tag tutorials / guides?

查看:203
本文介绍了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 ?

推荐答案

我敢打赌,您正在谈论

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 tutorial - Chapter 5 - Facelets - Composite Components
  • Java EE 6 tutorial - Chapter 13 - Advanced Composite Components
  • JSF 2.0, is it possible to create my own component?
  • Is it possible to use HTML4/5 with JSF/Facelets?

这篇关于JSF HTML5标签教程/指南?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆