title: How and when is a @ViewScoped bean destroyed in JSF?
body: <p>The lifecycle of the  <code>@RequestScoped</code> and <code>@SessionScopedBean</code> <em>managed beans</em> are managed by the Servlet container itself since they are basically stored as an attribute of <code>HttpRequest</code> and <code>HttpSession</code> respectively. How do JSF manage the lifecycle of the <code>@ViewScopedBean</code> ? I know it gets created when the view is created and is usable till there is a postback to a different view. But I found out that is not garbage collected immediately after we move from that view.</p>