A JSTL primer, Part 1: The expression language

JSF Techniques – EL Resolvers

Simple If – Then for rendered properties in table – tr using view column data.

[Column value of GorusTipi equals “Zorunlu”] AND [Column value of UygunlukDurumu IS NOT EMPTY]

<xp:this.rendered><![CDATA[#{viewEntry[“GorusTipi”] eq “Zorunlu” && !empty viewEntry[“UygunlukDurumu”]}]]></xp:this.rendered>

Table 2. The EL operators

Category Operators
Arithmetic +-*/ (or div), % (or mod)
Relational == (or eq), != (or ne), < (or lt), > (or gt), <= (or le), >= (or ge)
Logical && (or and), || (or or), ! (or not)
Validation empty

Share and Enjoy

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

Set your Twitter account name in your settings to use the TwitterBar Section.
Email