Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是Icefaces的新手。我想知道如何使用onload方法,或者我想在页面加载时调用一些方法。
在您的 JSF 页面中:
<f:event type="preRenderView" listener="#{yourManagedBean.yourMethod()}" />
在 YourManagedBean.java 中:
public void yourMethod() { ... }