title: Get bean values in another bean in prime faces
body: <p>I want to access values from one bean to another bean in primefaces. I defined scope @SessionScoped.</p>
  
  <p>But still when accessing value in another bean, I get <code>null</code>.</p>
  
  <p><code>FirstBean.java</code></p>
  
  <pre><code>public void setDistrict(String district) {
      System.out.println("district set District Method "+district);
      this.district = district;
  }  
  public String getDistrict() {
      System.out.println("district get District Method" +district);
      return district;
  }
  </code></pre>
  
  <p>When trying to access in <code>SecondBean.java</code>,it is returning <code>null</code>.</p>