auto -instantiate a session bean?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 03:40:50

Replace

<value>#{sessionScope.vdcAddBean}</value> 

by

<value>#{vdcAddBean}</value> 

to get JSF to autocreate the bean.

JSF managed session beans are stored within the ExternalContext, you can retrieve a map with all of them using the following method, getSessionMap.

The key to this map should be the managed-bean-name, so perhaps you can check for null and if so then try instantiating your bean and putting it directly into the sessionMap?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!