primefaces通过菜单栏更改中心布局 [英] primefaces change center layout with menubar

查看:128
本文介绍了primefaces通过菜单栏更改中心布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个包含标题,菜单和内容的模板,并且构建了动态菜单菜单栏,现在我想知道如何做才能单击菜单上的每个选项,从而仅更新布局的内容并标头和菜单将保持不变...这是我的模板:

Hi I have a template with header, menu and content, and I built my dynamic menu menubar, now I want to know how I can do to make the click of each option on my menu only update the contents of my layout and header and menu will remain as they are ... here is my template:

<div id="header" style="height: 70px;">
     <ui:insert name="header" >
         <ui:include src="header.xhtml" />
     </ui:insert>
</div>

<div id="menu" style="height: 50px;">
     <ui:insert name="menu" >
         <ui:include src="menu.xhtml" />
     </ui:insert>
</div>

<div id="content">
     <ui:insert name="content" >
         <ui:include src="content.xhtml" />
     </ui:insert>
</div>

有人可以帮忙吗?谢谢!

can someone help? Thank you!

推荐答案

您应该使用@wittakarn示例中显示的JSF模板与DefaultMenuItem和setUrl组合到其他页面,而其他页面使用相同的模板,标题和菜单将保留.

You should use JSF Templating that show in @wittakarn example combination with DefaultMenuItem and setUrl to other page, and the other page use the same template, the header and menu will remain.

这篇关于primefaces通过菜单栏更改中心布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆