Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333666

Summary: [JSF2.0] AppConfig validator does not support custom bean scope
Product: [WebTools] Java Server Faces Reporter: Yury Kats <yurykats>
Component: CoreAssignee: Ian Trimble <ian.trimble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: atomitl, ian.trimble, raghunathan.srinivasan
Version: 3.2.2   
Target Milestone: 3.4.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Yury Kats CLA 2011-01-06 11:09:45 EST
This is a follow up to bug 308092. While 308092 resolved the problem of "view" scope not being handled, custom scopes are still reported as invalid.

JSF 2.0 supports custom bean scopes, that are EL expressions pointing to maps.

With the managed bean defined like:

<managed-bean>
	<managed-bean-name>bean1</managed-bean-name>
	<managed-bean-class>java.lang.String</managed-bean-class>
	<managed-bean-scope>#{customScope}</managed-bean-scope>
</managed-bean>

The validator reports the following warning:
Managed bean scope must be one of: request, session, application, none

Note: The warning does not mention view scope, although the validator now supports it (via bug 308092).
Comment 1 Ian Trimble CLA 2011-11-01 17:12:05 EDT
Fix committed to HEAD at 2011/11/01 02:11PM PDT.
Comment 2 Raghunathan Srinivasan CLA 2011-12-08 13:42:46 EST
Update Target Milestone
Comment 3 Victor Atomitl Garcia Toral CLA 2012-01-27 12:48:14 EST
Hello, thanks a lot for fixing this, but as adopters this is needed in WTP 3.2.5 P
Comment 4 Raghunathan Srinivasan CLA 2012-02-06 13:46:44 EST
(In reply to comment #3)
> Hello, thanks a lot for fixing this, but as adopters this is needed in WTP
> 3.2.5 P

Please open a hot-bug request for 3.2.5 P.
Comment 5 Victor Atomitl Garcia Toral CLA 2012-02-07 16:58:33 EST
Hot-bug request opened in Bug 370891. 

Thank you Raghu.