Exercises: The JSF 2 Expression Language


Favorite Colors (from Array)
No loopingLooping with ui:repeat
  • Purple
  • Cyan
  • Chartreuse
  • Papayawhip
  • Purple
  • Cyan
  • Chartreuse
  • Papayawhip

Favorite Colors (from List)
No loopingLooping with ui:repeat
  • Purple
  • Cyan
  • Chartreuse
  • Papayawhip
  • Purple
  • Cyan
  • Chartreuse
  • Papayawhip

Employees (from Map)

Employees with Given ID:

Conditional Rendering (No Loop)

Positive Numbers:

Conditional Rendering (With Loop)

Positive Numbers:


All code from the coreservlets.com J2EE tutorials: JSF 2.2, PrimeFaces, Java 7 programming, Java 8 lambdas and streams, Hadoop, Ajax with jQuery, GWT, Spring, Hibernate, JPA, SOAP-based and RESTful Web Services, Android development, servlets, and JSP. There are also live instructor-led training courses on the same Java EE topics: JSF 2.2, PrimeFaces, Java 7 programming, Java 8 lambdas and streams, Hadoop, Ajax with jQuery, GWT, Spring, Hibernate, JPA, SOAP-based and RESTful Web Services, Android development, servlets, and JSP. Email info@coreservlets.com to inquire about customized versions of these courses taught onsite at your organization. Also see the JSF 2.2 tutorial, the PrimeFaces tutorial, and information about Marty Hall, the training course instructor.