Harmony theme problem with Primefaces 8.0

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
gigi96
Posts: 7
Joined: 10 Jun 2015, 23:00

31 Jan 2021, 13:25

Hi everybody,

I'm using the harmony theme with Primefaces 8.0 and the dataTable rowStyleClass don't work. All the style classes i provided don't cusomize the color of the dataTable lines.

Did somebody face this problem before ?

Thanks. :(
Primefaces 10.0

Spring boot 2.5.2

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

03 Feb 2021, 09:11

Hi

Sorry for late response! I can't see any problem. I'll send you a sample code and ss, maybe it will help. If you have a more specific issue, please send a more detailed description with the code block

Image

For sample style add this css to your .xhtml file:

Code: Select all

    <ui:define name="head">
        <style type="text/css">
            .new {
                background-color: #54a90a !important;
                background-image: none !important;
                color: #ffffff !important;
            }
        </style>
    </ui:define>


For styling rows add this attribute:

Code: Select all

rowStyleClass="#{car.year ge 2000 ? 'new' : null}"
Best Regards,

gigi96
Posts: 7
Joined: 10 Jun 2015, 23:00

03 Feb 2021, 14:24

It works. Thank you very much. The problem came from my css style classes. I didn't add !important and background-image: none !important;.

Best regards !

:D
Primefaces 10.0

Spring boot 2.5.2

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

05 Feb 2021, 14:03

Hi,

I'm glad to get your issue resolved. Thanks for your feedback.

Best Regards,

Post Reply

Return to “Harmony - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests