想在JSF控件中操作框架頁Frameset,可以在左框架頁(任一框架頁)里聲明一個Form,設定好它的target="mainFrame"(任一框架頁的id),這樣當點擊這個Form里面的CommandButton或者CommandLink的時候,JSF處理好業務邏輯后,就可以將To-View-ID指定的頁面轉到主框架頁里面去顯示了。
<h:form target="mainFrame">
<h:commandButton action="index">
</h:form
|
mainFrame |
點擊左邊的commandButton之后,index處理之后的To-View-ID指定的頁面就會顯示在mainFrame里面了
---------------------------------------------------------
專注移動開發
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2008-10-27 17:05
TiGERTiAN 閱讀(1247)
評論(0) 編輯 收藏 所屬分類:
Java 、
JSF