JavaServer Faces Peter Norrhall. 2007-02-07JavaServer Faces Internet - Möjliggöraren.

Slides:



Advertisements
Similar presentations
Java EE - Introduction -
Advertisements

Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project.
© 2006 by Jonas Jacobi & Raghu Srinivasan; made available under the EPL v1.0 | Presenter Raghu Srinivasan Project Lead Oracle Inc. The JSF Tools.
© 2006 by Raghu Srinivasan; made available under the EPL v1.0 | Presenter Raghu Srinivasan Project Lead Oracle Inc. The JSF Tools Project –
J2EE Architecture Overview
JSF Portlet Backing Beans and UI Components Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in.
J2EE JavaServer Faces (JSF) Introduction Internetteknologi 2 (ITNET2)
Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Zongwei Yuan 1. Why JavaServer Faces Model-view-controller (MVC) architecture Easy to Drop components onto a web page by adding component tags. Bind components.
JSF 2.2 in Action Kito D. Mann Principal Consultant.
Building JSF applications with the JSF Tools Project | © 2008 by Oracle Inc; made available under the EPL v1.0 1 Eclipse Web Tools Platform – Uncovered.
ISE 390 Dynamic Web Development Java EE Web Applications.
2136: Developing Web GUI Using JSF  Vishy Kasar.
Integrating SOA and the Application Development Framework Shaun O’Brien Principal Product Manager – Oracle JDeveloper / ADF.
Web applications using JavaServer Faces (JSF) A brief introduction 1JavaServer Faces (JSF)
JBoss Seam: Contextual Components Jason Bechtel
Internet Technologies 1 Master of Information System Management Java Server Faces Model/View/Controller Design Pattern for Web Development Slides.
Java Server Faces Model/View/Controller Design Pattern for Web Development Slides adapted from “Core JavaServer Faces” by Geary and Horstmann and the J2EE.
A short overview 7/2/ © Dipl.-Inform. Volker Reichel, VRSoft, 2007.
Introduction to JavaServer Faces Jeff Swisher Director of Consulting Services Dunn Solutions Group.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
Java Server Faces Çağatay Çivici Apache MyFaces Team Member
Java Server Faces St. Louis JavaSIG June 8, 2006 Jay Meyer, Harpoon Technologies.
IndicThreads.com Java Meet June 2006 Java Server Faces Presentation By - Raghu Charan.
Pittsburgh Java User Group– Dec Java PureFaces: A JSF Framework Extension.
Shale and JSF Ken Sipe - Code Mentor. 2 Presentation Goal  Provide enough understanding for someone new to JSF and Shale to start coding…
Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.
iphone / Mobile Application Development using Oracle ADF Jon Gooding – Solutions Architect.
1 Introduction to JavaServerFaces & MyFaces Anudeep Jassal.
Enterprise Grade Ajax with JavaServer™ Faces Ed Burns Senior Staff Engineer Enterprise Java Platforms.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
JavaServer Faces Jeff Schmitt October 5, Introduction to JSF Presents a standard framework for building presentation tiers for web applications.
CSE446 S OFTWARE Q UALITY M ANAGEMENT Spring 2014 Yazılım ve Uyguluma Geliştirme Yöneticisi Orhan Başar Evren.
1 Lecture 24 George Koutsogiannakis Spring 2011 CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES.
Developing Portlets With Java Server Faces Dave Meredith NGS Grid Development, e-Science Centre, Daresbury Laboratory, UK
JSF road map (NI) Clientside validation Show problems
Web applications using JavaServer Faces (JSF) A brief introduction 1JavaServer Faces (JSF)
J2EE Structure & Definitions Catie Welsh CSE 432
© 2006 by IBM; made available under the EPL v1.0 | October 11, 2006 | Tour of the Web Tools Platform (WTP) Project David Williams Eclipse WST Project Lead.
JSF on Rails – JDeveloper 11g, ADF 11g and JHeadstart Lucas Jellema Expertise Manager AMIS (The Netherlands)
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Case Study + MVC Lec Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called.
Fall CIS 764 Database Systems Design L8. Web ….
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
JavaServer Faces: Sample App + Life Cycle Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator)
JAVA SERVER FACES ADITI RAJORIYA UNI – ar2630. POINTS TO BE DISSCUSED WHAT IS JSF? WHY JSF? ARCHITECTURE JSF VERSIONS UI COMPONENTS JSF STRUCTURE AND.
Fall CIS 764 Database Systems Engineering L7. ADF + EJB Context: Oracle Application Development Framework …but … only EJB.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Portlets 1.
JavaServer Faces (JSF) and Ajax Integration. Agenda 대강의 ( 정말로..) 개요 예제 아키텍트라면..
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
RIA and Web2.0 Development with no Coding Juan Camilo Ruiz Senior Product Manager Development Tools.
JavaServer Faces framework Craig McClanahan is presented that created Struts web framework and based on experience gathered designed JavaServer.
J2EE/Java EE Apache Tomcat v9 IBM Websphere v8 Redhat JBoss EAP v6 Oracle Weblogic v12 Fusion Web Tier ServletsJSPJSF Business Tier JMXJMSEJB.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
By Jonathan Smith. Road Map Introduction Company Information Project Overview Java Web Design and Development Summary Relation to IUP Acknowledgments.
JSFConsole Lightweight JSF Application Monitor Give insight into application  See what is happening under the hood  Modify lifecycle at runtime System.
Introduction to Java Server Faces (covered topics) ● Reasons to use „Java Server Faces“ ● JSF application structure ● JSF component model ● JSF managed.
Intro to JavaServer Faces Mimi Opkins CECS 493 Fall 2016.
Introduction to JavaServer Faces and the Woodstock UI Components Presenter Name
Examples with Java Server Faces (covered topics)
Chapter 44 JavaServer Face
J2EE Lecture 4: Advanced Concepts in JSF
JSF Portlet Navigation and Event Listeners
ISE 390 Dynamic Web Development
Chapter 39 JavaServer Face
JavaServer Faces: The Fundamentals
Intro to J2EE Concepts.
Presentation transcript:

JavaServer Faces Peter Norrhall

JavaServer Faces Internet - Möjliggöraren

JavaServer Faces Internet för användare

JavaServer Faces Internet för utvecklare Det suger!!!

JavaServer Faces Bra för konsulter € € € € € € € € € € € €

JavaServer Faces Dåligt på lång sikt

JavaServer Faces Java GUI Business Data JPA EJB 3 JavaServer Faces GWT

JavaServer Faces

JavaServer Faces Managed Beans SearchBean {... private String searchInput public String search() {... } Managed Beans Action

JavaServer Faces Managed Beans - DI

JavaServer Faces Navigering SearchBean {... String searchInput String search() {... return ”result”; } Managed Beans

JavaServer Faces Navigering

JavaServer Faces Demo

JavaServer Faces JSF - Livscykeln Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events SearchBean {... String searchInput String search() {... } Managed Beans UIViewRoot HtmlForm HtmlMessage HtmlInputText HtmlCommandButton UI Component Tree

JavaServer Faces Restore View UIViewRoot HtmlForm HtmlMessage HtmlInputText HtmlCommandButton UI Component Tree Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events

JavaServer Faces Apply Request Values UIViewRoot HtmlForm HtmlMessage HtmlInputText HtmlCommandButton UI Component Tree Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events Multi*

JavaServer Faces Process Validations SearchBean {... String searchInput String search() {... } Managed Beans UIViewRoot HtmlForm HtmlMessage HtmlInputText HtmlCommandButton UI Component Tree Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events Multi*

JavaServer Faces Update Model Values SearchBean {... String searchInput String search() {... } Managed Beans UIViewRoot HtmlForm HtmlMessage HtmlInputText HtmlCommandButton UI Component Tree Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events Multi*

JavaServer Faces Invoke Application UIViewRoot HtmlForm Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events HtmlMessage HtmlInputText HtmlCommandButton SearchBean {... List result String searchInput String search() {... } Managed BeansUI Component Tree Multi*

JavaServer Faces Render Response Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events UIViewRoot HtmlDataTable UIColumn HtmlInputText UI Component Tree UIColumn HtmlInputText UIColumn HtmlInputText SearchBean {... List result String searchInput String search() {... } Managed Beans

JavaServer Faces Nyheterna i JSF 1.2 < Jsp 2.1< Jsf 1.2

JavaServer Faces Unified EL •#{searchBean.inputString} - deferred •${searchBean.inputString} – immediate •Implicita objekt (application, cookie,...) •Operatorer (+.-,*,/,%,A?B:C,==,!=,...) •Uttryck (#{searchBean.search})

JavaServer Faces Nyheter i Jsf Sammanfattning • icles/J2EE/jsf_12

JavaServer Faces Verktyg Oracle JDeveloper NetBeans Java Studio Creator Exadel Studio JBuilder SAP Developer Studio BEA Workshop IntelliJ IDEA Websphere Studio

JavaServer Faces Komponentbibliotek •JSF •MyFaces Extensions •Apache Tobago/ADF Faces (Oracle) •ICEFaces •Netadvantage for JSF •BackBase •RichFaces (Ajax4JSF)

JavaServer Faces Förändra/skapa komponenter

JavaServer Faces Förändra komponenter •Egenskaper •CSS Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events

JavaServer Faces JSF – Uttöka en komponent Restore View Apply Request Values Process Validations Update Model Values Process Events Invoke Application Render Response Process Events Process Events Process Events public void validate (FacesContext context, UIComponent toValidate, Object value) { String = (String) value; if == -1) { ((UIInput)toValidate).setValid(false); FacesMessage message = new FacesMessage("Invalid "); context.addMessage(toValidate.getClientId(context), message); } }

JavaServer Faces Skapa en komponent

JavaServer Faces JSF och Ajax •Komponentbibliotek •Sun Blueprint AJAX components •Ajax4JSF •Seam Remoting

JavaServer Faces Ajax4Jsf – a4j:support

JavaServer Faces Ajax4Jsf – CommandButton <a4j:commandButton action="#{searchBean.handleSearch}” reRender=”tblSearchResult, txtSearchTerm” value="#{bundle['search.search']}" styleClass="html-text"/>

JavaServer Faces Ajax4Jsf •

JavaServer Faces IceFaces

JavaServer Faces JSF Ramverk •Apache Shale vs JBoss Seam – Dialog Manager (Conversation) – Validation – Remoting (Ajax) – Clay (Non-Jsp) –...

JavaServer Faces JBoss Seam SearchBean {... List result String searchInput String search() {... } public class SearchBean implements String searchInput String search() {... } EJB 3

JavaServer Faces Annoteringar – Bokmärken •A RESTful framework public class CategoryBean String public String getCategory() { category = em.find(Category.class, catId); }

JavaServer Faces JSF - Bokmärken category se.movlin.jsf.pagebeans.CategoryBean request catId java.lang.String #{param.catId} public class CategoryBean { private String catId; public void setCatId(String catId) { this.catId = catId; category = em.find(Category.class, catId); } }

JavaServer - Validering public class public String get () { return ; } public void set (String ) { this. = ; } }

JavaServer Faces Seam – Ajax public interface Search public String suggest(String name); public class SearchAction implements Search { public String suggest(String name) { String suggestion = null;... return suggestion; } // get the remote Search var search = Seam.Component.getInstance(”search”); function suggest(name) { search.suggest(name, suggestCallback); } function suggestCallback(suggestion) { form.suggestion.value = suggestion; }

JavaServer Faces JBoss Seam •Fogar samman JSF och EJB 3 (Web Beans) – Ut med XML-konfig •AJAX för en bättre värld •Conversation – Stöd för tillståndsfulla multipla ”konversationer”

JavaServer Faces Seam – Web Beans •Web Beans JSR 299

JavaServer Faces Facelets

JavaServer Faces Facelets - Våga Vägra JSP!

JavaServer Faces Facelets - Mallbaserat bottom top rightcontainer template.xhtml.top{ margin: 0px; padding: 0px; height: 58px; width: 770px; font: 20px Verdana, Tahoma, Arial text-decoration-none }.right {... }.bottom {... }.container {... } template.css

JavaServer Faces Produktkatalog ShoppingCart/CompanyInfo (bottom) Menu (top) Branding (right) container </ui:insert catalog_template.xhtml category.xhtml product.xhtml

JavaServer Faces Produktkatalog catalog_template.xhtml product.xhtml

JavaServer Faces Facelets – enklare att •Skapa egna komponenter •Skapa valideringsfunktioner •Skapa ”taggar” •Skicka parametrar mellan sidor •Exadel Studio

JavaServer Faces Prestanda

JavaServer Faces State – Client vs Server Web.xml javax.faces.STATE_SAVING_METHOD client jsfsearch.jsp

JavaServer Faces Cache is King <s:cache key=”art_93682” enabled=”true”

JavaServer Faces JSF 2.0 •Web Beans JSR JBoss •Oracles JSR för att uttöka designtime stödet i GUIbyggare • ?linkhttp:// ?link

JavaServer Faces Summering