【问题标题】:Icefaces: How to use OnLoadIcefaces:如何使用 OnLoad
【发布时间】:2012-12-20 23:31:51
【问题描述】:

我是Icefaces 的新手。我想知道如何使用onload方法,或者我想在页面加载的时候调用一些方法。

【问题讨论】:

  • 到目前为止你做了什么?请发布 SSCCE (sscce.org)。

标签: jsf icefaces


【解决方案1】:

在您的 JSF 页面中:

<f:event type="preRenderView"
        listener="#{yourManagedBean.yourMethod()}" />

在 YourManagedBean.java 中:

public void yourMethod() {
   ...
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-11-04
    • 1970-01-01
    • 2021-01-06
    • 2018-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-28
    相关资源
    最近更新 更多