`

JSF中关于javax.faces.STATE_SAVING_METHOD的一个问题?

阅读更多

看<JSF in Action>里讲JSF的生命周期时,有下面一段:
A view represents all of the components that make up a particular page. It can be
stored on the client (usually in a hidden field on a browser) or on the server (usu-
ally in the session).

意思是说:"在JSF中,一个视图代表着组成整个特定页面的组件,它可以被存储在客户端(通常以隐藏域的方式存在浏览器中),也可以存储到服务器上(通常以Session的方式.)"


存放在服务器上的情况先不考虑,对存放到client端的方法有些疑问,我看了下生成HTML的代码,其中是有一个element,它的内容如下:
    <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAANzcgBHb3JnLmFwYWNoZS5teWZhY2VzLmFwcGxpY2F0aW9uLlRyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnRGWRfYnEr2zwIABFsACV9jaGlsZHJlbnQASltMb3JnL2FwYWNoZS9teWZhY2VzL2FwcGxpY2F0aW9uL1RyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnQ7TAAPX2NvbXBvbmVudENsYXNzdAASTGphdmEvbGFuZy9TdHJpbmc7TAAMX2NvbXBvbmVudElkcQB+AARbAAdfZmFjZXRzdAATW0xqYXZhL2xhbmcvT2JqZWN0O3hwdXIASltMb3JnLmFwYWNoZS5teWZhY2VzLmFwcGxpY2F0aW9uLlRyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnQ7uqwnyBGFkKoCAAB4cAAAAAFzcQB+AAJ1cQB+AAcAAAAgc3EAfgACcHQAKWphdmF4LmZhY2VzLmNvbXBvbmVudC5odG1sLkh0bWxPdXRwdXRUZXh0dAAHX2lkSnNwMHBzcQB+AAJwcQB+AAx0AAdfaWRKc3AxcHNxAH4AAnB0AChqYXZheC5mYWNlcy5jb21wb25lbnQuaHRtbC5IdG1sSW5w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AH4AiXEAfgCKeHBwcHBwcHBwdXEAfgAAAAAAA3VxAH4AAAAAAAh1cQB+AAAAAAAcdXEAfgAAAAAABXVxAH4AAAAAAAdxAH4AW3B0ABdvcmcuYXBhY2hlLm15ZmFjZXMuTGlua3QAHmFkZEVkaXRBcnRpc3RQcm9wZXJ0eTpfaWRKc3AxOHNxAH4Acz9AAAAAAAAMdwgAAAAQAAAAAXEAfgB4cQB+AHp4cHBzcQB+AIRxAH4BnnVxAH4AAAAAAAJ0ACgje2F1dGhlbnRpY2F0aW9uQ29udHJvbGxlci5hdXRoZW50aWNhdGV9cHBxAH4AenQAGEJhY2sgdG8gQ01UIExhbmRpbmcgUGFnZXBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHVxAH4AAAAAAAN1cQB+AAAAAAAIdXEAfgAAAAAAHHVxAH4AAAAAAAV1cQB+AAAAAAAHcQB+AF1wcQB+AbV0AB5hZGRFZGl0QXJ0aXN0UHJvcGVydHk6X2lkSnNwMTlzcQB+AHM/QAAAAAAADHcIAAAAEAAAAAFxAH4AeHEAfgB6eHBwc3EAfgCEcQB+AZ51cQB+AAAAAAACdAAgI3tsaXN0QXJ0aXN0UHJvcGVydGllc0JhY2tlci5nb31wcHEAfgB6dAAlQmFjayB0byBCcm93c2UgQXJ0aXN0IFByb3BlcnRpZXMgUGFnZXBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHh4cQB+AGk=" />

看的很晕.

web.xml中相关的配置为:
  <context-param>
    <description>State saving method: "client" or "server" (= default)
            See JSF Specification 2.5.3</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>

我怀疑这就是上面所说的"以隐藏域的方式存到浏览器上"的表现.

不过,我的疑问是:
    1,先不说这个hidden variable有这么大,即使很小,那它有什么用?在提交时再传回Server上,还原出以前的状态么?
    2,在什么情况下要用这个?与存在Server端比有什么优缺点?

1
0
分享到:
评论
1 楼 vieri122 2008-03-11  
   我的理解是:就象你用AJAX和不用AJAX一样的道理差不多. 在CLINET由浏览器去解释执行相关的操作,但安全性不一定可靠.(因为代码可见)而在SERVER端,由服务器容器去解释执行相关操作.安全性自然会好一些,可对服务器的要求就更高了.

以上是我个人的理解,不保证一定准确.待牛人来给出肯定的答复!

相关推荐

    javax.servlet-api-3.1.0.jar javax.el-api-2.2.4.jar javax.el-2.2.4.jar

    在一个典型的Java Web应用中,`servlet-api`和`el-api`会被部署在服务器上,作为服务器的一部分提供服务。开发者在开发过程中通常会依赖这两个库的API版本,但不会将它们打包到最终的WAR文件中,因为服务器已经提供...

    jsf-api-2.0.3.jar.zip_jsf api_jsf jar包_jsf-api-2.0.3.jar_jsf-api

    JSF(JavaServer Faces)是Java平台上的一种用于构建用户界面的MVC(Model-View-Controller)框架。它提供了一种声明式的方式来创建Web应用程序,允许开发者通过组件和事件处理来构建用户界面,而无需深入HTML和...

    Java Server Faces API 组件标签 API Reference 速查手册

    Java Server Faces API 组件标签 API Reference 速查手册 HTML_BASIC RenderKit javax.faces.Command javax.faces.Button javax.faces.Link javax.faces.Data javax.faces.Table javax.faces.Form javax.faces...

    JSF-EJB3.rar_EJB3.rar_base.util.EJBUtil_ejb jsf_jsf ejb3_jsf mys

    JSF(JavaServer Faces)是Java平台上的一个用于构建用户界面的MVC(Model-View-Controller)框架,它简化了在Web应用中创建用户交互界面的过程。EJB3则是Java EE(Enterprise JavaBeans)规范的一个版本,专注于...

    javax.servlet3.0 javax.servlet_jsp2.0源码

    JSP 2.0是JSP技术的一个升级,它强化了与Servlet 2.4的兼容性,并引入了统一的EL(Expression Language)和JSF(JavaServer Faces)表达式。在JSP 2.0中,EL成为页面表达式的默认方式,简化了数据绑定。此外,JSP ...

    java-ee-api.rar_Javax.javaee-api_java ee api

    5. **JSF(JavaServer Faces)**:JSF是一种MVC(模型-视图-控制器)框架,用于构建Web用户界面。`javax.faces`包提供了UI组件、事件处理和转换验证机制。 6. **JMS(Java Message Service)**:JMS允许应用之间...

    jsf必需的jar包

    在这个库中,你可以找到诸如`javax.faces.FactoryFinder`、`javax.faces.application.Application`、`javax.faces.component.UIComponent`以及问题描述中提到的`javax.faces.*`类。这些类允许开发者创建、管理、以及...

    javax.enterprise.context.jar

    在Java企业级应用开发中,`javax.enterprise.context.jar`是一个非常关键的库,它包含了用于管理组件生命周期的Contexts and Dependency Injection (CDI) API。CDI是Java EE平台的一个重要部分,它提供了依赖注入...

    JSF.rar_JSF_faces_java 框架

    JavaServer Faces(JSF)是Java企业版(Java EE)中的一个组件模型和用户界面(UI)框架,专为构建可维护、可扩展且具有良好用户体验的Web应用程序而设计。JSF的核心理念是将用户界面与业务逻辑解耦,提供一种声明式...

    JSF_beginer.rar_HTTP 网页_JSF

    文件"JSF.chm"可能是一个帮助文档,其中包含了关于JSF的详细教程和参考信息,包括组件使用、事件处理、数据绑定、生命周期等各个方面。"www.pudn.com.txt"可能是从网站pudn.com下载的资源说明或者链接列表,可能包含...

    javaee API

    javax.faces.context Classes and interfaces defining per-request state information. javax.faces.convert Contains classes and interfaces defining converters. javax.faces.el DEPRECATED Classes and ...

    jsf_page.rar_ jsf_page_JSF_PAGE_java jsf_jsf glassfish_jsp page

    在这个名为"jsf_page.rar"的压缩包中,包含了一个关于JSF分页处理的示例,这对于理解和实现高效的数据展示非常有用。下面我们将详细探讨JSF分页、相关技术以及如何在实际项目中应用。 1. JSF分页基础: - 分页是...

    jsf-validation.zip_JSF_jsf validation_zip

    1. **验证器Bean(Validator Beans)**:这是自定义验证逻辑的实体,它们实现了`javax.faces.validator.Validator`接口,包含一个`validate`方法,该方法会在数据提交时被调用,进行具体的验证操作。 2. **验证规则...

    ejb.jar.zip(javax.ebj/javax.ebj.spi) 下载

    EJB(Enterprise JavaBeans)是Java平台上的一个核心组件,用于构建可扩展的、安全的、事务处理的分布式企业级应用程序。在Java EE(Enterprise Edition)框架中,EJB提供了服务器端的业务逻辑处理能力,使得开发者...

    javax.annotation.rar

    4. `@ManagedBean`: 这个注解用于声明一个Java类为管理bean,通常在JavaServer Faces (JSF) 或者Java EE环境中使用。 5. `@Inject`: 来自JSR 330,提供依赖注入的能力,使得对象间的依赖关系可以通过注解来声明,而...

    qt.rar_jsf example_jsf spring hibernate_jsf下拉菜单_spring jsf hiber

    【标题】"qt.rar" 提供的是一个关于 "jsf example" 的实例,结合了 "jsf spring hibernate" 的技术栈,同时包含了 "jsf下拉菜单" 的实现,以及 "spring jsf hibernate" 的整合应用。这个压缩包可能是为了演示如何在...

    tk.eclipse.plugin.jsf_2.0.4.zip

    JavaServer Faces(JSF)是Java平台上的一个标准的用户界面组件模型和事件处理框架,用于构建Web应用程序。JSF提供了丰富的组件库,使得开发者能够快速地创建交互式的Web页面。而tk.eclipse.plugin.jsf_2.0.4插件...

    Core.JavaServer.Faces.3rd 更新到 jsf 2.0

    JSF是一个用于构建企业级Web应用的Java标准组件模型,由Java Community Process(JCP)制定并维护。该书第三版的更新,旨在帮助开发者掌握JSF 2.0的新特性和改进,以提升开发效率和应用程序的质量。 JSF 2.0是JSF...

    tomcat5.5javax.el.jar

    EL提供了一个简洁的语法,允许开发者在JSP页面、JSF组件或其他服务器端Java代码中表达和计算动态值。例如,它可以用来访问JavaBean的属性或者调用方法。在Tomcat 5.5中,这个jar包是EL表达式语言的运行时支持。 这...

    JSFLoginDemo.zip_JSF_JSFLoginDe_JSFLoginDemo.zip _jsf hibernate

    根据提供的文件名"JSFLoginDemo",我们可以推测这是一个演示JSF登录功能的项目。项目可能包含以下组成部分: 1. **View层**:使用JSF组件构成的登录页面,用户输入用户名和密码。 2. **Controller层**:Managed ...

Global site tag (gtag.js) - Google Analytics