Page 1 of 1

Harmony theme problem with Primefaces 8.0

Posted: 31 Jan 2021, 13:25
by gigi96
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. :(

Re: Harmony theme problem with Primefaces 8.0

Posted: 03 Feb 2021, 09:11
by siris
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,

Re: Harmony theme problem with Primefaces 8.0

Posted: 03 Feb 2021, 14:24
by gigi96
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

Re: Harmony theme problem with Primefaces 8.0

Posted: 05 Feb 2021, 14:03
by siris
Hi,

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

Best Regards,