JSF HTML5标签教程/指南?

编程入门 行业动态 更新时间:2024-10-27 22:23:04
本文介绍了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 ?

推荐答案

我敢打赌,您正在谈论本文. 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标签教程/指南?

本文发布于:2023-10-31 00:46:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   指南   教程   JSF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!