欢迎来到天天文库
浏览记录
ID:47105548
大小:28.46 KB
页数:10页
时间:2019-08-04
《Myfaces上下文参数英文》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、SummaryBelowisthelistofavailablewebcontextparameterssupported:WebContextParametersArtifactId:myfaces-apiNameDefaultValueExpectedValuesSinceDescriptionSourceClassjavax.faces.STATE_SAVING_METHODserverserver,client1.1Definethestatemethodtobeused.Therearetwodifferentoptionsdefinedbythespecification:"cl
2、ient"and"server"state.When"client"stateisconfigured,allstateinformationrequiredtocreatethetreeisembeddedwithinthedatarenderedtotheclient.Notethatbecausedatareceivedfromaremoteclientmustalwaysbetreatedas"tainted",caremustbetakenwhenusingsuchdata.SomeStateManagerimplementationsmayuseencryptiontoensur
3、ethatclientscannotmodifythedata,andthatthedatareceivedonpostbackisthereforetrustworthy.When"server"stateisconfigured,thedataissavedsomewhere"onthebackend",and(atmost)atokenisembeddedinthejavax.faces.application.StateManagerdatarenderedtotheuser.javax.faces.DEFAULT_SUFFIX.jsp1.1Indicatethedefaultsuf
4、fixtoderivethefileURIifextensionmappingisused.javax.faces.application.ViewHandlerjavax.faces.CONFIG_FILES1.1CommaseparatedlistofURIsof(additional)facesconfigfiles.(e.g./WEB-INF/my-config.xml)SeeJSF1.0PRD2,10.3.2Attention:Youdonotneedtoput/WEB-INF/faces-config.xmlinhere.javax.faces.webapp.FacesServl
5、etjavax.faces.LIFECYCLE_ID1.1IdentifytheLifecycleinstancetobeused.javax.faces.webapp.FacesServletorg.apache.myfaces.ERROR_HANDLINGtruetrue,false1.2.4Indicateifmyfacesisresponsibletohandleerrors.Seehttp://wiki.apache.org/myfaces/Handling_Server_Errorsfordetails.javax.faces.webapp.FacesServletorg.apa
6、che.myfaces.ERROR_HANDLER1.2.4Ifyouwanttochooseadifferentclassforhandlingtheexception.Theerror-handlerneedstoincludethefollowingmethods:·handleException(FacesContextfc,Exceptionex)·handleExceptionList(FacesContextfacesContext,ListexceptionList)·handleThrowable(FacesContextfacesContext,Throwableex)j
7、avax.faces.webapp.FacesServletorg.apache.myfaces.ERROR_TEMPLATE_RESOURCEMETA-INF/rsc/myfaces-dev-error.xml1.2.4javax.faces.webapp._ErrorPageWriterorg.apache.myfaces.DEBUG_TEMPLATE_RESOURCEMETA-INF/rsc/myfac
此文档下载收益归作者所有