Jump to content
denisduval75

JSF-Primefaces-Datatable printer

Recommended Posts

Hello,
I'm printing a primefaces datatable with the printer component.
The table cells are printed correctly, but some have a red or blue background that does not print.
Do you have a solution ?
Thank you.
I use PF 6.1.2

Share this post


Link to post
Share on other sites

What does your developer tool say your relevant code looks like?

Edited by niche

Share this post


Link to post
Share on other sites
Here is my code :

<p:dataTable ...
...
    <p:columns value="#{syntheseManagerBean.listeColonneModele}">
           <h:outputText value="#{ligne[colonne.valeur]}" 
                         style="background-color: #{ligne.type ne 'L' ? 'red' : 'transparent'}"/>
                         
                                              

 

Share this post


Link to post
Share on other sites

Great job of finding the relevant code, but I don't recognize the styling notation.  Google suggests it's java server (obviously, JSF is a ref to java server) .  Hopefully someone else can help you.

Edited by niche

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...