public class PreRenderViewEvent extends ComponentSystemEvent
このイベントのインスタンスが SystemEventListener.processEvent(javax.faces.event.SystemEvent) または ComponentSystemEventListener.processEvent(javax.faces.event.ComponentSystemEvent) に渡されると、リスナーの実装は、このイベントインスタンスの source が、これからレンダリングされる UIViewRoot インスタンスであると想定する場合があります。
このイベントのリスナーが現在の FacesContext の UIViewRoot を変更することは有効ですが、リスナーは、新しい UIViewRoot が ViewHandler.createView(javax.faces.context.FacesContext, java.lang.String) への呼び出しで作成され、ビューがレンダリング中にトラバースされる子で完全に読み込まれることを確認する必要があります。リスナー実装は ViewDeclarationLanguage.buildView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) を呼び出して UIViewRoot を生成します。
sourceSE| コンストラクターと説明 |
|---|
PreRenderViewEvent(FacesContext facesContext, UIViewRoot root) 引数 |
PreRenderViewEvent(UIViewRoot root) 引数 |
getComponent, isAppropriateListener, processListenergetFacesContextgetSourceSE, toStringSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic PreRenderViewEvent(UIViewRoot root)
引数 root がレンダリングされようとしていることを示す新しい PreRenderViewEvent をインスタンス化します。
root - レンダリングされる UIViewRoot IllegalArgumentExceptionSE - 引数が null の場合。public PreRenderViewEvent(FacesContext facesContext, UIViewRoot root)
引数 root がレンダリングされようとしていることを示す新しい PreRenderViewEvent をインスタンス化します。
facesContext - Faces コンテキスト。root - レンダリングされる UIViewRoot IllegalArgumentExceptionSE - 引数が null の場合。Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.