📜  RichFaces Rich:Panel

📅  最后修改于: 2021-01-08 12:34:12             🧑  作者: Mango

RichFaces

它是带有可选标题的带边框面板。对于基本用法,它不需要任何属性。没有定义任何属性的< rich:panel >将呈现没有标题的边框区域。

我们应该使用header属性指定要显示在标题中的文本。

样式类和皮肤参数

下表显示了面板的样式类和相应的外观参数。

Class Function Skin Parameters Mapped CSS properties
.rf-p It is used to define styles for the panel itself. generalBackgroundColor background-color
.rf-p-hdr It is used to define styles for the header of a panel. headerTextColor
headerSizeFont
color
font-size
.rf-p-b It is used to define styles for the body of a panel. generalSizeFont
generalFamilyFont
font-size
font-family

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

JSF文件

// rich-panel.xhtml






Rich Panel





输出: