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.
マスターページが欲しいのですが、これでコンテンツを切り替えます。現在、マスターページのコンテンツペインを次のように定義することで機能しています。<ui:include src="#{navigation.currentPane}" />
<ui:include src="#{navigation.currentPane}" />
ナビゲーションBeanは、コンテンツファセットの現在のナビゲーションパスを保持します。コンテンツはajaxで更新されます。
これは正しい方法ですか?欠点はありますか?
ViewScoped Bean を使用すると問題が発生する可能性があります。src の EL は、リクエストごとに Bean を再作成する可能性があります。SessionScoped Bean を使用すると、問題なく動作すると思います。