rowStyleClass does not work for dataTable
-
- Posts: 8
- Joined: 14 Aug 2011, 20:59
Hi,
Noticed that
They are being overriden by
.ui-widget-content {
background: none repeat scroll 0 0 #FFFFFF;
}
Noticed that
They are being overriden by
.ui-widget-content {
background: none repeat scroll 0 0 #FFFFFF;
}
primefaces-3.1-SNAPSHOT on Mojarra-2.1.4
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Works fine;
http://www.primefaces.org/showcase-labs ... loring.jsf
You need to make sure your css overrides the default theme look and feel.
http://www.primefaces.org/showcase-labs ... loring.jsf
You need to make sure your css overrides the default theme look and feel.
Here are my codes, which work with 3.0.M2, but not with 3.0.M3 anymore.
Code: Select all
rowStyleClass="#{row.isCurrent ? 'highlightTableRow' : null}"
Code: Select all
.highlightTableRow {
background: none repeat scroll 0 0 #E0EEEE;
font-weight: bold;
}
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE
Here is mine and it works:
Try either adding the tr. or try before the ; add !important like background-color: #D9D9D9 !important;
Or if that doesn't work i think you need to set your background-image to none.
Code: Select all
rowStyleClass="#{common:isActive(currentService) ? null : 'inactive'}"
Code: Select all
tr.inactive {
background-image: none;
background-color: #D9D9D9;
color: #3D3D3D;
}
Or if that doesn't work i think you need to set your background-image to none.
JSF 2.0
Primefaces 3.2
Tomcat 7.0
Primefaces 3.2
Tomcat 7.0
Thanks! It works by adding '!important' to background-color. Hier is my code:
Code: Select all
.highlightTableRow {
background-color: #E0EEEE !important;
font-weight: bold;
}
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE
-
- Information
-
Who is online
Users browsing this forum: No registered users and 54 guests