2

When I use the "required="true"" for form validation in PrimeFaces, it gives star mark automatically in black color. I want change it to another color. There is no way to write css because star is not appeared by PrimeFaces.

How do I change it's default color to another color(red) ? This is the code in there documentation. I used it.

 <p:outputLabel for="firstname" value="Firstname:" />
 <p:inputText id="firstname" value="#{userView.firstname}" required="true" label="Firstname">
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Dusman
  • 122
  • 4
  • 11

1 Answers1

1

You need to change the CSS from your theme.

Example:

.ui-outputlabel .ui-outputlabel-rfi {
    color: blue;
}
jklee
  • 2,198
  • 2
  • 15
  • 25