【问题标题】:How can i use the markInitialState method?如何使用 markInitialState 方法?
【发布时间】:2012-08-31 20:41:54
【问题描述】:

如何使用 ma​​rkInitialState() 方法? 我想保存组件的初始状态。

这个是markInitialState吗?

【问题讨论】:

    标签: jsf-2 java-ee-6 myfaces composite-component


    【解决方案1】:

    markInitialState 供容器/上下文使用,如here 所示。使用saveState(FacesContext ct) 来满足您的需要,使用restoreState(FacesContext ctx) 来恢复同一个对象。干杯

    【讨论】:

      猜你喜欢
      • 2019-04-07
      • 2013-09-19
      • 2012-03-10
      • 2019-08-17
      • 1970-01-01
      • 1970-01-01
      • 2019-09-08
      • 2020-11-21
      • 2019-06-15
      相关资源
      最近更新 更多