• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to set multpile style classes for headerClass attribute in datatable???

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI All,

i want to apply different CSSstyles for my header columns,

how to specify styleclass names

i tried


but in html output it shows all the styleclasses for one header. it is not correct.



i tried giving comma then also it is same.

but for columnClasses and rowClasses , it set only one style class for <td> and <tr>.

how to do it in headerclass.

thanks in advance
Gopal
 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

how to specify width for each column when you use datatable???

i have 5 columns and i need to set different width for each column.


how to do that???
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you're missing the coma (,) between the styles.

Regarding the column width....

https://coderanch.com/t/211242/JSF/java/colspan


Deja-vu anyone?
 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no i tried using comma(,) then also it is not working.


when you use comma for columnClasses and rowClasses it works fine.


but not with headerClass??
reply
    Bookmark Topic Watch Topic
  • New Topic