Pete Muir commented on WBRI-264:
We need a build script for this.
JSF 2.0 Wrong Scope
Project: Web Beans
Issue Type: Bug
Components: JSF Integration
Affects Versions: 1.0.0.PREVIEW1
Environment: Tomcat 6.0.18
JSF 2.0 (Mojarra)
Reporter: Alexander Bell
Fix For: 1.0.0.CR1
Attachments: source.zip, source.zip
I've created a "User" class which sould be request scoped with the
properties "name" and "password".
Also I've created a AuthenticationService which is session scoped and injects the
User with @Current (so the User from the request scope must be injected).
Finally I've got a xhtml page which you can enter the user and the password and press
a button which triggers an "login" action in the AuthenticationService.
(very similar to the jsf-web-example of chapter 2 of the introduction guide. only with
When I am in the login action the properties "name" and "password"
from the injected user are null.
But the setters (for name and password) of the User were called before the action was
So I suppose there are two User objects in two different scopes.
Actually it should always be the request scope.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see: http://www.atlassian.com/software/jira