title: xhtml not showing session scoped values
body: <p>I have a ManagedBean that is Session Scoped that injects another two Session Scoped Beans, they both have their proper getter and setters.</p>
  
  <p>My class is as follows:</p>
  
  <pre><code>@ManagedBean(name="oneClass")
  @SessionScoped
  public class OneClassController implements Serializable {
  
      @ManagedProperty(value="#{myOtherBean}")
      public AnotherClass another;
  
      @ManagedProperty(value="#{requestBean}")
      public RequestClass request;
  
      public String foo() {
          another = getAnotherService(request);
          return "page?faces-redirect=true";
      }
  
      //getters and setters for AnotherClass and RequestClass
  }
  </code></pre>
  
  <p>Now, the request class holds all the values for a web service request. Those values are filled within a form in a xhtml page.</p>
  
  <p>When the user finishes filling up the request and fires the action from a button, it enters the <code>foo</code> method. The debug shows the request with the correct data, and when I call it, <code>another</code> gets filled up correctly.</p>
  
  <p>Now, <code>page.xhtml</code> looks like this:</p>
  
  <pre><code>&lt;h:outputText value="#{requestBean.agentId}" /&gt;
  &lt;h:outputText value="#{myOtherBean.name}" /&gt;
  &lt;h:outputText value="#{myOtherBean.lastname}" /&gt;
  </code></pre>
  
  <p>When <code>page</code> is rendered, all the values from the <code>requestBean</code> are showed correctly, but all the <code>anotherBean</code> values show up empty. Even refreshing the page won't help.</p>
  
  <p>If I trigger a button in <code>page.xhtml</code> to print out in the action method the values from <code>anotherBean</code>:</p>
  
  <pre><code>log.info("Another name: " + another.getName());
  </code></pre>
  
  <p>they print out fine.</p>
  
  <p>I have in <code>web.xml</code> the saving method set for the server.</p>
  
  <p>By the way, this is not the real naming convention I am using, but right now I'm in another computer without any IDEs nor JDK whatsoever, so I'm trying to replicate the code the best I can.</p>
  
  <p>How can I show the correct values in <code>page</code>?</p>