📜  Primefaces FieldSet

📅  最后修改于: 2021-01-08 04:30:48             🧑  作者: Mango

PrimeFaces FieldSet

它是一个分组组件,是html字段集的扩展。它是一种具有图例和内容的容器。它用于显示分类的数据。

PrimeFaces提供了组件,该组件用于在JSF应用程序中创建字段集。它具有下表列出的各种属性。

FieldSet属性

Attribute Default value Type Description
legend null String It is used to set title text.
style null String It is used to set inline CSS of the fieldset.
toggleable false Boolean It is used to make content togglable with animation.
toggleSpeed 500 Integer It is used to set toggle duration in milliseconds.
collapsed false Boolean It is used to define initial visibility state of content.

在下面的示例中,我们正在实现组件。本示例包含以下文件。

JSF文件

// fieldset.xhtml





FieldSet












输出: