📜  Primefaces芯片

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

PrimeFaces芯片

它是一个输入文本框,用于输入多个值。 组件用于在JSF应用程序中创建输入文本。当我们想通过使用单个组件从用户那里获取多个值时,这很有用。它具有下表列出的各种属性。

筹码属性

Attribute Default value Type Description
rendered true Boolean It is used to specify the render component.
value null Object It is used to set value of the component.
required false Boolean It is used to mark the component as required.
validator null MethodExpr It is used to set validator for the component.
valueChangeListener null ValueChange
Listener
It is used to set valuechangelistener.
requiredMessage null String It is used to set message to be displayed when required field
validation fails.
converterMessage null String It is used to set message to be displayed when conversion fails.
validatorMessage null String It is used to set message to be displayed when validation fields.
widgetVar null String It is used to set name of the client side widget.
max null Integer It is used to set maximum number of entries allowed.

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

JSF文件

//chips.xhtml





Chips








输出: