title: JSF2 Can't reach SessionScoped bean from ViewScoped as ManagedProperty
body: <p>I have a strange problem. Afaik I can inject a SessionScoped bean into a viewscoped, because its broader, than the other. Here is my code:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public class ProjectBean implements Serializable {
  
  @ManagedProperty(value="#{projectCurrentBean}")
  private ProjectCurrentBean currentBean;
  
  public void setCurrentBean(ProjectCurrentBean currentBean) {
      this.currentBean = currentBean;
  }     
  
  @ManagedProperty(value="#{userCredentialsBean}")
  private UserCredentialsBean activeUser;
  
  public void setActiveUser(UserCredentialsBean activeUser) {
      this.activeUser = activeUser;
  }
  </code></pre>
  
  <p>The 2 managed bean:</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class ProjectCurrentBean implements Serializable  {
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class UserCredentialsBean  implements Serializable {
  </code></pre>
  
  <p>It works fine with the UserCredentialsBean, but when I put the ProjectCurrentBean it fails:</p>
  
  <pre><code>Unable to create managed bean projectBean. The following problems were found: - The scope of the object referenced by expression #{projectCurrentBean}, request, is shorter   than the referring managed beans (projectBean) scope of view
  </code></pre>
  
  <p>why? :)</p>