No saved view state could be found for the view identifier
解决方法:
javax.faces.application.ViewExpiredException:No saved view state could be found for the view identifier
As you probably already know, JSF is storing the view state of your page in session. Obviously, when the session has timed out, it can’t restore the view state and so throws a ViewExpiredException.
The solution for this problem is to add the following lines in your web.xml file:
<context-param> 
  <param-name>facelets.BUILD_BEFORE_RESTORE</param-name> 
  <param-value>true</param-value> 
</context-param>
When this initialization parameter is turned on, it changes ViewHandler.restoreView() to build the view before asking the StateManager for help.
However, if you are using RichFaces, for some reason this is breaking a few Ajax components! 
To be honest with you, I didn’t investigate in depth why these components don’t work with this parameter set to true.
No saved view state could be found for the view identifier的更多相关文章
- View State
		
如何查看viewstate 鼠标右键页面,然后view page source 源码中搜索viewstate,会找到一个隐藏的字段. <input type="hidden" ...
 - View Controller Programming Guide for iOS---(一)---About View Controllers
		
About View Controllers View controllers are a vital link between an app’s data and its visual appear ...
 - a computer-centered view of information systems to a database-centered view
		
Code.Complete.Second.Edition 2004 Bachman compared the Ptolemaic-to-Copernican change in astronomy t ...
 - 一个view相对于屏幕或者另外一个view 的坐标
		
如果想知道一个view相对于屏幕或者另外一个view 的坐标,那么可以通过如下的方法得到: UIWindow * window=[[[UIApplication sharedApplication] ...
 - View Controller Programming Guide for iOS---(八)---Using View Controllers in the Responder Chain
		
Using View Controllers in the Responder Chain 响应链中使用视图控制器 View controllers are descendants of the UI ...
 - View Controller Programming Guide for iOS---(三)---Using View Controllers in Your App
		
Using View Controllers in Your App Whether you are working with view controllers provided by iOS, or ...
 - 【朝花夕拾】Android自定义View篇之(四)自定义View的三种实现方式及自定义属性使用介绍
		
前言 转载请声明,转自[https://www.cnblogs.com/andy-songwei/p/10979161.html],谢谢! 尽管Android系统提供了不少控件,但是有很多酷炫效果仍然 ...
 - ASP值view State
		
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.We ...
 - Android 自定义View修炼-自定义可动画展开收缩View的实现
		
有时候需要点击一个view可以动画展开和收缩折叠一个View这样的效果,这样就可以直接自定义View来实现. 本例中,采用继承FrameLayout来实现自定义的ExpandView.下面将详细介绍各 ...
 
随机推荐
- 随笔2 PAT1001.A+B Format (20)
			
1001.A+B Format(20) 题目链接 1001.A+B Format (20) C++ 代码 第一次使用markdown,还不是很习惯,现在努力的在适应它 首先这道题我们很容易就可以读懂题 ...
 - 转载sublime text注册码
			
直接输入注册码就可以了 ----- BEGIN LICENSE ----- Andrew Weber Single User License EA7E-855605 813A03DD 5E4AD9E6 ...
 - springMVC在jsp传对象到后台
			
==============实体entity======================= package com.jb.pub.entity; import java.io.Serializable ...
 - 建表的sql
			
1. 创建用户表 create table user( id int unsigned not null primary key auto_increment comment '自增id', user ...
 - 无责任Windows Azure SDK .NET开发入门篇一[Windows Azure开发前准备工作]
			
一.Windows Azure开发前准备工作 首先我们需要了解什么是 Azure SDK for .NET?微软官方告诉我们:Azure SDK for .NET 是一套应用程序,其中包括 Visua ...
 - Linux下getopt()函数的简单使用
			
最近在弄Linux C编程,本科的时候没好好学啊,希望学弟学妹们引以为鉴. 好了,虽然啰嗦了点,但确实是忠告.步入正题: 我们的主角----getopt()函数. 英雄不问出处,getopt()函数的 ...
 - linux tar.gz zip 解压缩 压缩命令
			
http://apps.hi.baidu.com/share/detail/37384818 download ADT link http://dl.google.com/android/ADT-0. ...
 - 「译」JavaScript 的怪癖 1:隐式类型转换
			
原文:JavaScript quirk 1: implicit conversion of values 译文:「译」JavaScript 的怪癖 1:隐式类型转换 译者:justjavac 零:提要 ...
 - Codeforces Beta Round #13 E. Holes 分块暴力
			
E. Holes Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/13/problem/E Des ...
 - hdu 1839 Delay Constrained Maximum Capacity Path 二分/最短路
			
Delay Constrained Maximum Capacity Path Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hdu. ...