File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to style h:dataTable?

 
Volodymyr Lysenko
Ranch Hand
Posts: 511
1
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I am in complete confusion. I can't apply css styles anyway to my h:dataTable:

The issue is no css style is applied to ths table. Even more I can't style
<hutputText id="forumName" class="forumName" value="#{forum.name}" />
with class 'forumName'. This text is not styled at all.

How to apply css styles to h:dataTable?

Thank you!
 
Denis Sysoev
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to check for broken links for css styles in output HTML from this jsf.
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks right to me. What you can do is take a look at the page after it renders use whatever browser tools you have available. (I prefer Firefox with the Firebug plugin.) That will tell you if the classes are being applied at all, and if they are, what styling is being applied.

It's also possible that your browser is caching the style sheet. In that case, a Ctrl-Refresh or Alt-Refresh, depending on the browser, usually forces it to reload.
 
Volodymyr Lysenko
Ranch Hand
Posts: 511
1
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I am ashamed. It was very late yesterday when I did stupid attempts to style my table.
It was new page and I didn't notice that css file for this page was not referenced by hutputScript

Thanks for replies!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic