源码讲解renderResponse和responseComplete的区别 关键字: renderResponse responseComplete 看源代码: responseComplete: /** * <p>Signal the JavaServer Faces implementation that the HTTP response * for this request has already been generated (such as an HTTP redirect), * and that the request pro ...
  • 12:57
  • 浏览 (133)
  • 评论 (0)
2008-01-12

JSF

把JSF从1.1升级到1.2,这个过程中暴漏出JSF的一些不足,如下: 一,原来在1.1下运行很正常的backing bean 不再正常了,调试之后发现有些backing bean 竟然是使用的包级私有的构造函数,但是很纳闷怎么在1.1下正常而1.2下就实例化不了,可能是JSF 1.1 的实现中是利用反射机制进行backing bean的初始化吧,而1.2又改成调用backing bean 的默认构造函数了,所以碰到包级私有构造函数的backin bean 才出现无法实例化的异常吧。 二,JSF提供的组件中的那个SelectOneMenu个人认为有一个不足之处,如果服务器端初始化组件树时候 ...
  • 17:31
  • 浏览 (161)
  • 评论 (1)
用的是通过filter过滤来管理权限的方法, 很简单,但也很实用。 这个项目并不小,但这么一个类就已经可以满足其权限管理的需要了,所以其实很多时候,权限管理大家并不必要想得那么复杂, 对于不少系统,简单通过filter来管理就ok了, simple 也是一种美^_^ 在web.xml里加入 <!--================权限 设置================--> <filter> <filter-name>Authentication</filter-name> <filter-c ...
  • 16:40
  • 浏览 (121)
  • 评论 (0)
anranran
搜索本博客
我的相册
153fdec8-1488-3536-9eb6-53d43f99beae-thumb
Internet Explorer Wallpaper
共 1 张
最近加入圈子
最新评论