您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > 02金蝶BOS开发工程师基础认证培训深入浅出JSF框架
深入浅出JSF框架BOS分析设计部葛朋旭Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimited序言JSF作为JavaEE的标准Web框架发展历程1.0-1.1-1.2-2.0IBM,Oracle,开源社区有多种实现版本AOM、WAF的底层核心就是JSF框架JSF的标准规范JSF的框架原理JSF生命周期分析JSF的高级特性JSF的RIA技术整合JSF的新版本趋势Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimited提纲JSF标准规范框架设计原理生命周期跟踪高级特性分析RIA技术整合新版本趋势Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF流行曲ApplicationDevelopmentTechnologiesOne-TierTwo-TierMulti-TierToday’sApplicationDevelopmentFrameworksTapestry,Struts,Webwork,Hibernate,TopLink,ADFUIX,Spring,…WhatisJSF?JavaServerFaces(JSF)isauserinterface(UI)frameworkforJavaWebapplications.ItisdesignedtosignificantlyeasetheburdenofwritingandmaintainingapplicationsthatrunonaJavaapplicationserverandrendertheirUIsbacktoatargetclient.Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF流行曲JSFDeveloperTypePageauthorApplicationdeveloperComponentwriterToolsproviderJSFimplementersCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimited提纲JSF标准规范框架设计原理生命周期跟踪高级特性分析RIA技术整合新版本趋势Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF标准规范-JSF有什么JSR-127StandardspecificationJDK1.5JavaServlet2.5JavaServerTMPages2.1JavaServerTMPagesStandardTagLibrary2.1ComponentModelEventDrivenNavigationModelApplicationLifecycle架构跟协议、Makeup的无关性Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimited提纲JSF标准规范框架设计原理生命周期跟踪高级特性分析RIA技术整合新版本趋势Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFArchitectureMVCCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFArchitectureMVCModel2Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFArchitectureMVCModel2Strutsmodel2Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFArchitectureMVCModel2Strutsmodel2JSFmodel2Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFArchitectureModel2Pattern【MVC】ModelManagedBean/BackingbeansJavaScriptModelViewUIComponentDHTML/DOM/CSS(XML)–based,WML-basedControllerFacesServletJavaScriptControlllerCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedComponent-BasedUIFrameworkUIComponentRendererRenderKitRenderer-specificcomponentsubclassJSPtag/FaceletsCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFUIComponent1.1UIComponentRenderer-SpecificClassRendererTypeSyntax/JSPTagUIInputUIOutputUICommandUIFormUIDataUIColumnUIGraphicUIMessageUIMessagesUIPanelUIParameterUISelectOneBooleanUISelectItemUISelectItemsUISelectManyUISelectOneUIComponnetUIComponentBaseUIViewRootCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFUIComponent1.11.2UINamingContainerCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF框架分析-1SavingandRestoringStateStateManagerResponseStateManagerjavax.faces.ViewStateComponentFamilyandComponentTypeConverters,Validators,Events,andListenersFacetsCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF框架分析-2RenderersdecodeencodeCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF框架分析-2RenderersRendererTypesCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSF框架分析-2RenderersRendererTypesRenderKitsHTMLSVG,WML,Ajax,XULMicrosoft’sDHTML/HTMLComponents(HTC)Mozilla’sXUL/XMLBindingLanguage(XBL)CustomActionTagHandlersCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimited提纲JSF标准规范框架设计原理生命周期跟踪高级特性分析RIA技术整合新版本趋势Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFDevelopmentBuildinganApplicationUsingJSF创建ManagedBean编写View页面配置faces-config.xmlCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFRequestProcess接收到一个jsfRequest时,JSFimplementation启动,相应的processes/services必须在portal/servlet环境可用,为此JSF实现调用不同的工厂类完成各方面的职责。WebApplicationStart-Up一个JSFWebapplication启动,4个工厂被实例化ApplicationFactory创建Application实例,LifecycleinstancetocreateandrestoreJSFviews。LifecycleFactoryreturningaLifecycleinstanceforalifecycleidentifierRenderKitFactoryreturningaRenderKitfortheJSFWebapplicationFacesContextFactorycreateaninstanceofFacesContextthatisusedtorepresentcontextualinformationassociatedwiththeincomingrequestandeventuallywiththeresponseCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedJSFLifecycleRequest-ProcessingLifecycle1RestoreView2ApplyRequestValues3ProcessValidations4UpdateModelValues5InvokeApplication6RenderResponseCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedLifecycleWebStart-up启动阶段Copyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedLifecycleWebStart-up启动阶段facesServlet内部创建FacesContextFactoryLifecycleFactory每个JSFWeb程序一个ApplicationFactory每个JSFimplementation,有一个缺省RenderKitCopyright©1993-2009KingdeeInternationalSoftwareGroupCompanyLimitedLifecycle-RestoreViewPhaseRestoreViewPhaseViewHandler.restoreView()restoringaviewfromtheserverandclientstate如果ViewHandler.restoreView()返回null调用FacesContext的renderRes
本文标题:02金蝶BOS开发工程师基础认证培训深入浅出JSF框架
链接地址:https://www.777doc.com/doc-954957 .html