What is STATE_SAVING_METHOD parameter in JSF 2.0

后端 未结 2 619
情书的邮戳
情书的邮戳 2020-12-02 08:41

I am not able to understand what is the function of this line in web.xml


    javax.faces.STATE_SAVING_METHOD         


        
2条回答
  •  猫巷女王i
    2020-12-02 09:02

    javax.faces.STATE_SAVING_METHOD parameter is used to specify where the state should be saved.

    If you want to save the state on the server (which is the default in the JavaServer Faces reference implementation), specify the param-value value as server.

    Otherwise to save the state on the client side we can specify client in the param-value.

    If the state is saved on the client, the state of the entire view is rendered to a hidden field on the page.

提交回复
热议问题