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

Primefaces datatable CSS?

 
Mark Dragan
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I got some question regarding primefaces datable.I downloaded jar from the net and included it into my project(I'm using jsp pages) and when I use it in my project data are shown but I'm not sure how can I included css that comes with components.If someone csn post me a peace of code that does that I would be greatful.
Thanks in advance.
 
Brendan Healey
Ranch Hand
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of the PrimeFaces jar are you using? this is a bit of a key point.
 
Mark Dragan
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Brendan thanks for reply I'm using version 2.2, but I changed my pages from jsp to xhtml and css works now.
Thanks
 
Brendan Healey
Ranch Hand
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark, the reason I asked is because the way this all works changed considerably in PrimeFaces
2.1, but the best source of information is the user guide and also the PrimeFaces forum.

If it's working for you then great, but one tip worth sharing is that I was adding .ui- css selectors
to my stylesheet and they'd never take effect. All my .xhtml pages use a common template and
this (the template) contained a <hutputStylesheet> tag in the <h:head> section. The effect
was that the primefaces supplied css files were loading after my project css file and taking
precedence.

The solution was to move the <hutputStylesheet> tag in my template to after the closing
</h:body> tag and then everything worked.

Regards,
Brendan.
 
Mark Dragan
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Brendan thank you very much for reply, it will be helpful in the future.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic