title: PostConstruct Not called jsf
body: <p>I have a jsf page that contains only command link . My backing bean has a post construct method. When I click on command link, my action method gets called but post construct method is not called. Here is code..</p>
  
  <p><strong>Xhtml page:</strong></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  
      &lt;h:body&gt;
          &lt;ui:composition template="CommonLayout.xhtml" &gt;
              &lt;ui:define name="title"&gt;
                  Final Page
              &lt;/ui:define&gt;
              &lt;ui:define name="content"&gt;
  
                  &lt;h:graphicImage value="resources\images\arigatougozaimashita.gif" /&gt;
  
                  &lt;h2 style="text-align: center; padding-bottom: 25px; padding-top: 100px"&gt;Thanks !!!&lt;/h2&gt;
  
                  &lt;h:form style="text-align: center;padding-bottom: 100px; padding-top: 25px"&gt;
                      Click &lt;h:commandLink value="here" action="#{finalPage.action}" /&gt; to return to First Login page.
                  &lt;/h:form&gt;
  
              &lt;/ui:define&gt;
          &lt;/ui:composition&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Backing bean:</strong></p>
  
  <pre><code>package com.mycompany.newyearchallenge2015;
  
  import java.io.Serializable;
  import javax.annotation.PostConstruct;
  import javax.faces.view.ViewScoped;
  import javax.inject.Named;
  
  @Named(value = "finalPage")
  @ViewScoped
  public class FinalPage implements Serializable {
  
      /**
       * Constructor
       */
  
      @PostConstruct
      public void init(){
          System.out.println("hi");
      }
  
      public FinalPage() {
      }
  
      /**
       * @Parameters : No parameters
       * @return : String which tells what's the next page to visit
       * @Description: Called on clicking the next button.
       */
      public String action() {
  
          return "LoginScreen1?faces-redirect=true";
  
      }
  
  }
  </code></pre>
  
  <p>Does anybody know why???</p>