我有一个popupppanel:
<rich:popupPanel id="popup" modal="false" autosized="true" resizeable="false">
<f:facet name="header">
<h:outputText value="Simple popup panel" />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">
X
</h:outputLink>
</f:facet>
<p>Any content might be inside this panel.</p>
<p>
The popup panel is open and closed from the javascript function of component client side object. The following code
<a href="#" onclick="#{rich:component('popup')}.hide()">hide this panel</a>:
<f:verbatim>#</f:verbatim>{rich:component('popup')}.hide()
</p>
</rich:popupPanel>
我用这个例子:
简单的弹出窗口示例
我想更改颜色,默认颜色是蓝色,我想将这个颜色更改为红色或绿色,可以吗?
如果是相关的,我将使用richfaces 4.
Add This css:
.rf-pp-hdr{
background: red;
}