dataTable's styleClass doesn't apply style

UI Components for JSF
Post Reply
ccastro333
Posts: 65
Joined: 27 Feb 2011, 18:04

22 Oct 2011, 10:37

Hi, I have a styleClass defined for dataTable's rows. But not all properties are correctly applied. Font styles are, but borders don't. I have a complex structure within each row, and I'm using an html table. And ungly borders are shown. panelGrid also displays borders (and it has an explicit border attribute). Is it an issue, or I'm doing something wrong?
I'm using M2
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7

User avatar
bercolax
Posts: 133
Joined: 02 Aug 2009, 13:27
Location: Courtallam, India
Contact:

22 Oct 2011, 18:58

Try the below style - Example usage

Code: Select all

  <p:dataTable styleClass="noborder"

Code: Select all

         
             .noborder  .ui-datatable-data td, .ui-datatable .ui-datatable-data-empty td {
                border:none;
            }

PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS

ccastro333
Posts: 65
Joined: 27 Feb 2011, 18:04

12 Nov 2011, 19:57

Thank you bercolax. Worked!
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7

ccastro333
Posts: 65
Joined: 27 Feb 2011, 18:04

01 Nov 2012, 12:43

Hello, I, trying to do the same as explained in this post, with dataGrid. I've tried

.midatagrid .ui-datagrid-data table td, .ui-datagrid-content table td, .ui-datagrid div .ui-datagrid-data-empty td {
border:none;
background:white;
}

and I can have a white background in the columns inside the datagrid, but apparently the background of the enclosing div is not affected. The question is, how could I obtain a "completely* white dataGrid presentation? Except for header, of course.

And, by the way, in IE8 even the white background for columns doesn't work

Thanks
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7

ccastro333
Posts: 65
Joined: 27 Feb 2011, 18:04

06 Dec 2012, 12:18

Hello,
I reopen this post because I'm still having trouble with datagrid. :( The desired behavior is removing all borders. Thanks
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests