1
I think you can create a style this way:
.atack {
background-image: none !important;
color: blue !important;
font-weight: bold;
width: 100%!imporant;
height: 100%!imporant;
}
And in the outputText you want to modify puts the check:
styleClass="#{valor.toLowerCase().indexOf('atack')!= -1 ? 'atack':''}"
In case you wanted to modify only the word atack
, could then create a method in the beam
and check if the value contains the word, not if it would be a good practice do so:
And in datatable would add the check in the desired columns:
public String contemAtack(String val) {
//remova os espaços entre < b e < f e < /font e < /b
return val.replace("Atack", < b>< font color=#0080c0>Atack< /font>< /b>);
}
< h:outputText value="#{seuBeam.contemAtack(valor)}" escape="false" />
The word Atack you want to style it appears only in the column "Increase" ?
– Geferson