第一次使用JSF,请教一下如何用aj4标签或其实标签实现子页面菜单刷新父页面。
如:页面总框架Template.xhtm......<h:formid="xx"><div><table><tr><td><divid="menuID"><ui:incl...
如: 页面总框架Template.xhtm
......
<h:form id="xx">
<div>
<table>
<tr>
<td>
<div id="menuID">
<ui:include scr="子页面菜单文件路径Menu.xhtml"></ui:include>
</div>
</td>
<td>
<div id="content">
<a4j:outputPanel ajaxRendered="true">
<!-- 父页面 -->
<a4j:include viewId="#{commonBean.objectViewId}" />
</a4j:outputPanel>
</div>
</td>
</tr>
</table>
</div>
</h:form>
......
子页面菜单Menu.xhtml
......
<rich:panelMenu id="mainMenu" ... mode="server">
<rich:panelMenuGroup id="group1" label="Group1">
<rich:panelMenuItem id="item1" lable="Item1">
????
</>
</rich:panelMenuGroup>
</rich:panelMenu>
...... 展开
......
<h:form id="xx">
<div>
<table>
<tr>
<td>
<div id="menuID">
<ui:include scr="子页面菜单文件路径Menu.xhtml"></ui:include>
</div>
</td>
<td>
<div id="content">
<a4j:outputPanel ajaxRendered="true">
<!-- 父页面 -->
<a4j:include viewId="#{commonBean.objectViewId}" />
</a4j:outputPanel>
</div>
</td>
</tr>
</table>
</div>
</h:form>
......
子页面菜单Menu.xhtml
......
<rich:panelMenu id="mainMenu" ... mode="server">
<rich:panelMenuGroup id="group1" label="Group1">
<rich:panelMenuItem id="item1" lable="Item1">
????
</>
</rich:panelMenuGroup>
</rich:panelMenu>
...... 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询