Render conditional with long in JSF -


I have a very simple column that needs red color if the value is below 15.

  sung = "# {resultClub.noSeries lt 15}"  

But the information is a long / long, always with 0 or zero Comparison is done. Is there a way to solve this problem?

  & lt; P: column id = "hcp80200" sortBy = "# {resclub.hcp80200}" & gt; & Lt; F: Aspect Name = "Header" & gt; HCP 80% - 200 & lt; / F: Aspect & gt; & Lt; H: output text render = "# {resultclub.noSeries gt 14}" value = "# {resClub.hcp80200}" /> & Lt; H: output text presentation = "# {resultclub.noSeries lt 15}" value = "# {resClub.hcp80200}" style = "background color: red;" /> & Lt; / P: column & gt;  

rated is used regardless of a component displayed Whether to do it or not. To style your JSF component conditionally, you must use CSS classes. Let's say that if you want the style outputText component, then you do that, where style 1 and style are 2 CSS class

    

So when the condition is true style1 otherwise style2 .


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -