Web programming

Units WEB1P and WEB2P

Java Server Faces (JSF)

Background

Java Server Faces (JSF) were developed to address some limitations of JSP. It provides a component model for user interface components (in a web application). Much more so than JSP, it hides away the details of HTTP requests and responses, and provides a simpler (and therefore faster to develop) framework for web application development.

JSF is comparable with Apache Struts 2 - both are MVC frameworks for web applications. JSF is currently better supported with tools by NetBeans.

What do I need to know about JSF?

JSF basics

JSF events and processing

Differences between JSF in EE6 and EE7

The @javax.faces.bean.ManagedBean annotation is still supported in EE7 (JSF 2.2) but it will be phased out in some future release. The preferred way of annotating a Backing Bean is to use @Named and provide an explicit scope (e.g. @RequestScoped).

Reading

 

Last updated by Prof Jim Briggs of the School of Computing at the University of Portsmouth

 
The web programming units include some material that was formerly part of the WPRMP, WECPP, WPSSM and WEMAM units.