*
The moose likes JSF and the fly likes Primefaces datatable CSS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Primefaces datatable CSS?" Watch "Primefaces datatable CSS?" New topic
Author

Primefaces datatable CSS?

Mark Dragan
Greenhorn

Joined: Sep 28, 2010
Posts: 18
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

Joined: May 12, 2009
Posts: 218
Which version of the PrimeFaces jar are you using? this is a bit of a key point.
Mark Dragan
Greenhorn

Joined: Sep 28, 2010
Posts: 18
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

Joined: May 12, 2009
Posts: 218
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

Joined: Sep 28, 2010
Posts: 18
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
 
subject: Primefaces datatable CSS?
 
Similar Threads
JSF 2.0 and Richfaces
Expression Language inside javascript file
How insert image to primefaces commandbutton?
h:outputStylesheet link ordering
Richface/Primefaces Elements are not rendered