什么 jsf 组件可以渲染 div 标签? [英] What jsf component can render a div tag?

查看:29
本文介绍了什么 jsf 组件可以渲染 div 标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:h:inputText 将呈现一个 "input type='text'".什么 jsf 标签可以渲染 "div" 标签?

Eg: h:inputText will render a "input type='text'". What jsf tag can render a "div" tag?

推荐答案

您可以使用 创建 DIV 组件.默认情况下, 将在 HTML 代码中生成一个 SPAN.

You can create a DIV component using the <h:panelGroup/>. By default, the <h:panelGroup/> will generate a SPAN in the HTML code.

但是,如果您指定 layout="block",则组件将是生成的 HTML 代码中的 DIV.

However, if you specify layout="block", then the component will be a DIV in the generated HTML code.

<h:panelGroup layout="block"/>

这篇关于什么 jsf 组件可以渲染 div 标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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