My first JSF page was throwing javax.faces.application.ViewExpiredException. while I searched I got this solution which solved my problem. 
<context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
</context-param>
But I am concerned about the security implication.
 
     
    