@ViewScope和@PostConstruct的问题 [英] Problem with @ViewScope and the @PostConstruct

查看:110
本文介绍了@ViewScope和@PostConstruct的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的MBean是@ViewScope,并在创建新实例和发出ajax请求时调用@PostConstruct.这应该发生吗?

My MBean is @ViewScope and the @PostConstruct is called when new instance is created and when made ajax request. this should happen?

推荐答案

此行为是JSF中的一个错误,仅在(即将发布的)mojarra 2.2版中得以修复.

This behavior is a bug in JSF that will be fixed only in the (upcoming) version 2.2 of mojarra.

在此处查看详细的答案: stackoverflow.com/questions/8804317/...

See the detailed answer here: stackoverflow.com/questions/8804317/...

这篇关于@ViewScope和@PostConstruct的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆