想在JSF控件中操作框架頁Frameset,可以在左框架頁(任一框架頁)里聲明一個(gè)Form,設(shè)定好它的target="mainFrame"(任一框架頁的id),這樣當(dāng)點(diǎn)擊這個(gè)Form里面的CommandButton或者CommandLink的時(shí)候,JSF處理好業(yè)務(wù)邏輯后,就可以將To-View-ID指定的頁面轉(zhuǎn)到主框架頁里面去顯示了。
<h:form target="mainFrame">
<h:commandButton action="index">
</h:form
|
mainFrame |
點(diǎn)擊左邊的commandButton之后,index處理之后的To-View-ID指定的頁面就會顯示在mainFrame里面了
posted on 2008-11-23 00:42
Vincent-chen 閱讀(415)
評論(0) 編輯 收藏 所屬分類:
JSF