title: Jsf2.0 preRenderView
body: <p>i am using jsf 2.0</p>
  
  <p>i have question accoring to PreRenderView.</p>
  
  <p>in my Bean i have method like</p>
  
  <pre><code>public void init() throws Exception
      {
  
          FacesContext.getCurrentInstance().getExternalContext().redirect("/To My Page");
          if(!FacesContext.getCurrentInstance().isPostback())
          {
              System.out.println("Kshitij");
          }
      }
  </code></pre>
  
  <p>when this method is executing it is also printing "Kshitij" in servler log.</p>
  
  <p>then redirecting to page.</p>
  
  <p>why? i think it has to redirect to page first.</p>