Color my datatable's rows with condition??
You can debug a lot, lot more... e.g. is the class actually ADDED to the row? What if you add it statically (no EL)? etc... All basic 'debugging' stuff you can (should) do yourself. We are not here to write full code for you, but Snooperman already almost did...
- snooperman
- Posts: 155
- Joined: 06 Nov 2012, 18:43
Novice, what he is trying to say is, you can investigate the problem in the UI also. You can inspect your page and see if the css file is loaded correctly (you can get 404 not found if the path is not correct), also, you can inspect your table rows and see what classes they have ( maybe the css selector is wrong, maybe your article.quantity is null and your EL breaks; if your EL condition breaks, I don't think you`ll get any error). In my post I didn't say it's a 100% working code... I adapted my 100% WORKING code to your problem, so maybe I missed something. Bear in mind, that this is a support forum, and you get guidance here, not fully working code.
var details = {
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
- snooperman
- Posts: 155
- Joined: 06 Nov 2012, 18:43
EL = Expression Language, like: "#{(article.quantity le 10 or article.quantity gt 50) ? 'yes': null}". That's why I asked you too look if quantity is null.
var details = {
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 13 guests