in a JSF page I need to render a warning message to the user when the upload file is too big.
I already have the file size from the backing bean and want to compare this to a fixed number (1000) , but it doesn't seem to work.
<h:outputText rendered="#{file.lines} > 1000" value="Too Big!"/>
The backing bean provides the correct file size, as I'm already displaying that:
<h:outputText value="#{file.lines} lines" />
This works as expected, displaying the correct numbers of lines. Is it because the number returned from the bean is actually a String?