Expression Language Tricks

1. Concatenation: Looking up a composite key in a dictionary


2. Conditional composite String output

#{condition?’ok': messages[‘ex.pression1′].concat(‘  ‘).concat(messages[‘ex.pression2′])}

3. Projections: Looping over a collection and printing one field



Source: Seam Documentation

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>