Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333666 - [JSF2.0] AppConfig validator does not support custom bean scope
Summary: [JSF2.0] AppConfig validator does not support custom bean scope
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.0 M4   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 11:09 EST by Yury Kats CLA
Modified: 2012-02-07 16:58 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.