title: JSF request scope with get parameter
body: <p>i know there are many similar threads but no like mine:</p>
  
  <p>I have a requestscope bean:</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class Bean implements Serializable{
      private String username = ""; //managed by textbox
      private String password = ""; //managed by textbox
  
      private String id ="-";
  
      //Load the Parameter as usual:
      @PostConstruct
      public void fetchParams(){
          System.out.println("FETCH PARAMS");
          FacesContext facesContext = FacesContext.getCurrentInstance();
          String id = facesContext.getExternalContext().getRequestParameterMap().get("id");
          if(id == null || id.length() == 0) return;
          setId(id);
      }
  
      // getters &amp; setters
  
      public void doSomething(){ //executed when clicked on the sumbit-button on the jsf-site
          StaticFunctions.doSomething(this);
      }
  }
  </code></pre>
  
  <p>The code does following:
  it retrieves the get-parameter "id" and saves it into String id (confirmed by string.out....). </p>
  
  <p><strong>But when the method doSomething() is executed and the previously stored "id" is read and returns "-" (like nothing happened).</strong></p>
  
  <p>why is this so?</p>