rowStyleClass does not work for dataTable

UI Components for JSF
Post Reply
tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

30 Aug 2011, 14:00

I changed to 3.0.M3, the property rowStyleClass does not work anymore for dataTable. Is it a bug?
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 Aug 2011, 16:30

did it work on M3-Snapshots?

msh321
Posts: 26
Joined: 30 May 2011, 15:01

30 Aug 2011, 19:36

Actually, I have noticed exactly the same thing. I have been using PrimeFaces from the SVN trunk for a while now, and I think that the "rowStyleClass" attribute stopped working yesterday (Monday) -- or perhaps it broke Sunday...

Regards,
Mads

ahmetcemrek
Posts: 8
Joined: 14 Aug 2011, 20:59

13 Sep 2011, 10:05

Hi,

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 Sep 2011, 10:07

Works fine;

http://www.primefaces.org/showcase-labs ... loring.jsf

You need to make sure your css overrides the default theme look and feel.

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

13 Sep 2011, 11:03

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

Lyrionus
Posts: 60
Joined: 31 Aug 2011, 09:09

13 Sep 2011, 11:14

Here is mine and it works:

Code: Select all

rowStyleClass="#{common:isActive(currentService) ? null : 'inactive'}"

Code: Select all

tr.inactive {
	background-image: none;
	background-color: #D9D9D9;
	color: #3D3D3D;
		
}
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.
JSF 2.0
Primefaces 3.2
Tomcat 7.0

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

13 Sep 2011, 11:34

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests