I came across a problem with the style configuration of buttons. I am not sure how to handle this, so I ask for someone to help me out on this.
Button id="1" the styleClass field is applied successfuly, but on button id="2" the styleClass is not applied, it doesn't apply the customized colors, so I am wondering now what i am doing wrong. Can anyone spot any problem when it's applied a styleClass on a button and the button is a part of column in a dataTable component?. Is the css right for this case?
Cheers,
== Updated==
Using PF 3.0M3
===========
Code: Select all
.myCustomStyle {
border-width:1px;
border-color: #000000;
border-style: solid;
text-align: center;
font-weight: bold;
background: #FF8000;
color: #FFFFFF;
width: 100%;
}
Code: Select all
<p:commandButton id="1" value="#{system.state}" styleClass="myCustomStyle" />
<p:dataTable id="registeredtable" var="system" value="#{ocsSystems.systems}" >
<p:column style="width:150px">
<h:outputText value="#{system.system}" style="font-weight:bold"/>
</p:column>
<p:column style="width:100px">
<p:commandButton id="2" value="#{system.state}" styleClass="myCustomStyle" />
</p:column>
</p:dataTable>