O'Reilly logo

JavaServer Faces by Hans Bergsten

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Syntax

A JSF EL expression starts with the #{ delimiter (a hash mark plus a left curly brace) and ends with } (a right curly brace):

#{anExpression}

When used in an attribute value for a standard JSF custom action, any number of EL expressions and static text parts can be combined. Such an expression is read-only, with the evaluation result of each expression converted to a String and then concatenated with the text parts:

<h:outputText value="The result of 1 + 2 + 3 is #{1 + 2 + 3}" />

The language is case-sensitive. All keywords are in lowercase, and identifiers must be written with correct capitalization.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required