开发者

Request scope in JSF

开发者 https://www.devze.com 2023-03-12 04:52 出处:网络
Request scope in JSF: I want to store objects onto the instance variables of an MPB in request scope (in the business logic) and access them fron the JSP开发者_开发百科. But I find that the request ge

Request scope in JSF: I want to store objects onto the instance variables of an MPB in request scope (in the business logic) and access them fron the JSP开发者_开发百科. But I find that the request gets killed before the MPBs getters are fired while rendering the page. I do not use a to invoke a redirect. Is there an option to persit the request object and its contents till the getters are fired from the page.


Yes.

Use @ViewScope instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消