Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EL Variable Support

Revision as of 18:27, 3 October 2006 by Unnamed Poltroon (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Background

Here is an example of the use of an EL variable:

   <c:forEach var="book" items="\#\{BooksBean.books\}">
	<h:inputText id="quantity" value="\#\{book.quantity\}" ... />
   </c:forEach>

The fragment shows a c:forEach creating a variable called "book" whose value is the expression "#{BooksBean.books}". When h:inputText evaluates "book" in its value attribute, the correct instance is evaluated based on the instance of BooksBean.books that was selected for that collection on a particular iteration of the forEach.

In order to support symbols like book at design-time we need to create a new type of symbol called IExpressionInstanceSymbol:

Back to the top