




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
SummaryBelow is the list of available web context parameters supported: Web Context ParametersArtifact Id: myfaces-apiNameDefault ValueExpected ValuesSinceDescriptionSource Classjavax.faces.STATE_SAVING_METHODserverserver,client1.1Define the state method to be used. There are two different options defined by the specification: client and server state. When client state is configured, all state information required to create the tree is embedded within the data rendered to the client. Note that because data received from a remote client must always be treated as tainted, care must be taken when using such data. Some StateManager implementations may use encryption to ensure that clients cannot modify the data, and that the data received on postback is therefore trustworthy. When server state is configured, the data is saved somewhere on the back end, and (at most) a token is embedded in the data rendered to the user. javax.faces.application.StateManagerjavax.faces.DEFAULT_SUFFIX.jsp1.1Indicate the default suffix to derive the file URI if extension mapping is used.javax.faces.application.ViewHandlerjavax.faces.CONFIG_FILES1.1Comma separated list of URIs of (additional) faces config files. (e.g. /WEB-INF/my-config.xml)See JSF 1.0 PRD2, 10.3.2 Attention: You do not need to put /WEB-INF/faces-config.xml in here.javax.faces.webapp.FacesServletjavax.faces.LIFECYCLE_ID1.1Identify the Lifecycle instance to be used.javax.faces.webapp.FacesServletorg.apache.myfaces.ERROR_HANDLINGtruetrue,false1.2.4Indicate if myfaces is responsible to handle errors. See /myfaces/Handling_Server_Errors for details.javax.faces.webapp.FacesServletorg.apache.myfaces.ERROR_HANDLER1.2.4If you want to choose a different class for handling the exception. The error-handler needs to include the following methods: handleException(FacesContext fc, Exception ex) handleExceptionList(FacesContext facesContext, List exceptionList) handleThrowable(FacesContext facesContext, Throwable ex)javax.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/myfaces-dev-debug.xml1.2.4javax.faces.webapp._ErrorPageWriterArtifact Id: myfaces-implNameDefault ValueExpected ValuesSinceDescriptionSource Classorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION201.1Only applicable if state saving method is server (= default). Defines the amount (default = 20) of the latest views are stored in .apache.myfaces.application.jsp.JspStateManagerImplorg.apache.myfaces.SERIALIZE_STATE_IN_SESSIONtrue1.1Only applicable if state saving method is server (= default). If true (default) the state will be serialized to a byte stream before it is written to the session. If false the state will not be serialized to a byte .apache.myfaces.application.jsp.JspStateManagerImplorg.apache.myfaces.COMPRESS_STATE_IN_SESSIONtrue1.1Only applicable if state saving method is server (= default) and if org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default). If true (default) the serialized state will be compressed before it is written to the session. If false the state will not be .apache.myfaces.application.jsp.JspStateManagerImplorg.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODEoffoff, no, hard-soft, soft, soft-weak, weak1.2.5Define the way of handle old view references(views removed from session), making possible to store it in a cache, so the state manager first try to get the view from the session. If is it not found and soft or weak ReferenceMap is used, it try to get from it. Only applicable if state saving method is server (= default). The gc is responsible for remove the views, according to the rules used for soft, weak or phantom references. If a key in soft and weak mode is garbage collected, its values are purged. By default no cache is used, so views removed from session became phantom references. off, no: default, no cache is used hard-soft: use an ReferenceMap(AbstractReferenceMap.HARD, AbstractReferenceMap.SOFT) soft: use an ReferenceMap(AbstractReferenceMap.SOFT, AbstractReferenceMap.SOFT, true) soft-weak: use an ReferenceMap(AbstractReferenceMap.SOFT, AbstractReferenceMap.WEAK, true) weak: use an ReferenceMap(AbstractReferenceMap.WEAK, AbstractReferenceMap.WEAK, true) org.apache.myfaces.application.jsp.JspStateManagerImplorg.apache.myfaces.config.annotation.LifecycleProvider1.1org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactoryorg.apache.myfaces.EL_RESOLVER_COMPARATOR1.2.10, 2.0.2org.apache.myfaces.el.unified.ResolverBuilderBaseorg.apache.myfaces.PRETTY_HTMLtruetrue,false1.1If true, rendered HTML code will be formatted, so that it is human readable. i.e. additional line separators and whitespace will be written, that do not influence the HTML code. Default: trueorg.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.ALLOW_JAVASCRIPTtruetrue,false1.1This parameter tells MyFaces if javascript code should be allowed in the rendered HTML output. If javascript is allowed, command_link anchors will have javascript code that submits the corresponding form. If javascript is not allowed, the state saving info and nested parameters ill be added as url parameters. Default: trueorg.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.DETECT_JAVASCRIPTfalsetrue,false1.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.AUTO_SCROLLfalsetrue,false1.1If true, a javascript function will be rendered that is able to restore the former vertical scroll on every request. Convenient feature if you have pages with long lists and you do not want the browser page to always jump to the top if you trigger a link or button action that stays on the same page. Default: falseorg.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.ADD_RESOURCE_CLASSorg.apache.myfaces.renderkit.html.util.DefaultAddResource1.1Tomahawk specific: A class implementing the org.apache.myfaces.shared_impl.renderkit.html.util.AddResource interface. It is responsible to place scripts and css on the right position in your HTML document. Default: org.apache.myfaces.shared_impl.renderkit.html.util.DefaultAddResource Follow the description on the MyFaces-Wiki-Performance page to enable StreamingAddResource instead of DefaultAddResource if you want to gain .apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.CHECK_EXTENSIONS_FILTERtruetrue,false1.1Tomahawk specific: A very common problem in configuring MyFaces-web-applications is that the Extensions-Filter is not configured at all or improperly configured. This parameter will check for a properly configured Extensions-Filter if it is needed by the web-app. In most cases this check will work just fine, there might be cases where an internal forward will bypass the Extensions-Filter and the check will not work. If this is the case, you can disable the check by setting this parameter to .apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTStruetrue,false1.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.CONFIG_REFRESH_PERIOD21.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.VIEWSTATE_JAVASCRIPTfalsetrue,false1.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.RENDER_VIEWSTATE_IDtruetrue,false1.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.STRICT_XHTML_LINKStruetrue,false1.1org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTONfalsetrue,false1.2.3This param renders the clear javascript on button necessary only for compatibility with hidden fields feature of myfaces. This is done because jsf ri does not render javascript on onclick method for button, so myfaces should do .apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMSfalsetrue,false1.2.9This param renders hidden fields at the end of h:form for link params when h:commandLink + f:param is used, instead use javascript to create them. Set this param to true also enables org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON automatically to ensure consistency. This feature is required to support Windows Mobile 6, because in this environment, document.createElement() and form.appendChild() javascript methods are not .apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IEfalsetrue,false1.1Add a code that save the form before submit using a link (call to window.external.AutoCompleteSaveForm(form) ). Its a bug on IE.org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.DELEGATE_FACES_SERVLET1.2.7org.apache.myfaces.shared_impl.config.MyfacesConfigorg.apache.myfaces.USE_ENCRYPTIONtruetrue,false1.1Indicate if the view state is encrypted or not. By default, encryption is .apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.SECRET1.1Defines the secret (Base64 encoded) used to initialize the secret key for encryption algorithm. See MyFaces wiki/web site documentation for instructions on how to configure an application for different encryption .apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.ALGORITHMDES1.1Indicate the encryption algorithm used for encrypt the view .apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.SECRET.CACHE1.1If is set to false, the secret key used for encryption algorithm is not cached. This is used when the returned SecretKey for encryption algorithm is not thread .apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.ALGORITHM.IV1.1Defines the initialization vector (Base64 encoded) used for the encryption algorithmorg.apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.ALGORITHM.PARAMETERSECB/PKCS5Padding1.1Defines the default mode and padding used for the encryption algorithmorg.apache.myfaces.shared_impl.util.StateUtilsorg.apache.myfaces.SERIAL_FACTORY1.1Defines the factory class name using for serialize/deserialize the view state returned by state manager into a byte array. The expected class
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 牛津深圳版初中英语单词表九年级下册
- 目标突破课件:3.4.1 同类项
- 河南省泌阳县2025年上半年公开招聘村务工作者试题含答案分析
- 2025年度健身中心场地租赁合同
- 2025版商铺租赁合同租赁期间合同解除条件承诺
- 2025版文化公司创意人员追诉期劳动合同示范
- 2025版租赁合同涵盖租赁物保险与风险承担
- 2025版养老院社会捐助服务合同
- 2025版银行信用卡分期付款合同规范模板下载
- 2025版三方大数据分析销售合作协议范本
- 蒋诗萌小品《谁杀死了周日》台词完整版
- 6G网络中的垂直通信和切片技术
- 入学安全第一课幼儿园
- 社区健康服务与管理教案
- 《社区康复》课件-第一章 总论
- 机械设备维护保养手册
- 人教版初中英语七至九年级单词汇总表(七年级至九年级全5册)
- 微积分的产生与发展
- 消防安全隐患排查投标方案(技术标)
- 22S803 圆形钢筋混凝土蓄水池
- 钢管顶管施工方案
评论
0/150
提交评论