denisduval75 Posted February 11, 2020 Share Posted February 11, 2020 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 Link to comment Share on other sites More sharing options...
niche Posted February 11, 2020 Share Posted February 11, 2020 (edited) What does your developer tool say your relevant code looks like? Edited February 11, 2020 by niche Link to comment Share on other sites More sharing options...
denisduval75 Posted February 12, 2020 Author Share Posted February 12, 2020 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'}"/> Link to comment Share on other sites More sharing options...
niche Posted February 12, 2020 Share Posted February 12, 2020 (edited) 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 February 12, 2020 by niche Link to comment Share on other sites More sharing options...
denisduval75 Posted February 13, 2020 Author Share Posted February 13, 2020 OK Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now