Tony Nguyen
Architecture Advantages Disadvantages Setup JSF Environment JSF & Database Conclusion Demo
Architecture A standard API for creating Java Web Application GUIs. Allow Java programmers to develop application without HTTP details and integrate it with user interface through event-driven model. JSF based on Model-View-Controller (MVC) design pattern. Drag and drop UI components to build web application. (EIS)
Advantages Less code. Custom GUI controls. Form validation. Event handling. Managed beans. Expression Language.
Disadvantages Less transparent. Harder to learn. Not enough documentation. Rigid approach. Undeveloped tool support.
JSF & Event Driven Example of commandLink <h:panelGrid id="links" columns="4" summary="#{bundle.chooseLocale}" title="#{bundle.chooseLocale}" > <h:commandLink id="NAmerica" action="storeFront" actionListener="#{carstore.chooseLocaleFromLink}">
Expression Language Sorry, no products match your criteria These products were found ${row.prodName}
Setup JSF Environment Java 2 Software Development Kit. Enabled web-server Tomcat 5. JSF 1.0 implementation(Sun’s Reference Implementation).
JSF & Database Standard JDBC JSTL Hibernate
Conclusion JSF can provide many useful features for developing complex GUIs and handling events. MVC for web development. Huge industry and vendor support.
References llateral/4gl/papers/JSF_For_4gl.pdf Enterprise.in.a.Nutshell.3rd.Edition.Nov.2005/ /javaentnut3-CHP-5-SECT-3.html sqlserver/article.php/c10079/#more 17