posts - 5,  comments - 7,  trackbacks - 0
想在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里面了
posted on 2008-11-23 00:42 Vincent-chen 阅读(386) 评论(0)  编辑  收藏 所属分类: JSF

只有注册用户登录后才能发表评论。


网站导航: