Yes like refreshing the page or request the page through a link.

On Thu, 02 Oct 2008 10:41:23 -0400, Guy Bashan <[EMAIL PROTECTED]> wrote:

When saying: "subsequent requests", what exactly do you mean? Refreshing the page browser with F5? Technically, If bean is declared as request, it should always be re-created, even on ajax requests.

Guy.


-----Original Message-----
From: Alex Diaz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2008 5:13 PM
To: MyFaces Discussion
Subject: Re: managed bean with request scope

Yes the bean is declared in faces-config.xml and has request scope.
<managed-bean>
         <managed-bean-name>ChangeTreeValueHelper</managed-bean-name>
         <managed-bean-class>beans.ChangeTreeValueHelper</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>

On Thu, 02 Oct 2008 09:47:11 -0400, Guy Bashan <[EMAIL PROTECTED]>
wrote:

Beans in request scope are recreated on each request.
Make sure:
1) Your bean is in the faces-config.xml.
2) The scope is really "request".

Guy



-----Original Message-----
From: Alex Diaz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2008 4:47 PM
To: [email protected]
Subject: managed bean with request scope

Are the managed beans with request scope destroyed after each request to
a
page? If so, then why the beans constructor is not being called after
subsequent requests?

Thanks.







--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply via email to