How to disable ViewState?

前端 未结 2 1185
天命终不由人
天命终不由人 2021-02-05 22:02

I\'m coming into Java world from MS and ASP.NET and looking for the similar to ASP.NET component-based HTML framework in Java. After reviewing tons of links in internet it looks

2条回答
  •  粉色の甜心
    2021-02-05 22:24

    Since Mojarra 2.1.19 and Mojarra 2.2.0-m10 it's possible to disable the state saving on a per-view basis by setting the transient attribute of to true.

    
        ...
        
            ...
        
        ...
    
    

    See also:

    • JSF is going stateless
    • What is the usefulness of statelessness in JSF?

提交回复
热议问题