How to use primefaces 3.5 blockUI block all page (p:layout) when click p:menu in p:layoutUnit (west)

这一生的挚爱 提交于 2019-12-24 16:05:26

问题


How to use primefaces 3.5 blockUI block all page (p:layout) when click p:menu in p:layoutUnit (west)

main.xhtml

    <h:body>
        <p:layout fullPage="true">
            <p:layoutUnit gutter="0" collapseSize="0" id="topLayout" position="north" size="88">
                <h:form id="topForm">
                    <ui:include src="main_top.xhtml" /> 
                </h:form>
            </p:layoutUnit>
            <p:layoutUnit gutter="0" collapseSize="0" id="leftLayout" position="west" size="155" header="Main Menu">
                <h:form id="leftForm">
                    <ui:include src="main_left.xhtml" />
                </h:form>
            </p:layoutUnit>
            <p:layoutUnit gutter="0" collapseSize="0" id="centerLayout" position="center">
                <h:form id="centerForm" style="width:100%">
                    <ui:include src="#{LoxCtrl.gotoPage}" />
                </h:form>
            </p:layoutUnit>
        </p:layout>



    </h:body>

main_left.xhtml

        <p:menu>
            <p:menuitem value="Home" icon="ui-icon-home" actionListener="#{LoxCtrl.goToXHTMLTemplate('main_center.xhtml')}" update=":centerForm"/>
            <p:menuitem value="Staff Info." icon="ui-icon-person" actionListener="#{LoxCtrl.goToXHTMLTemplate('apps/staff_info/main.xhtml')}" update=":centerForm"/>
            <p:menuitem value="Leave History" icon="ui-icon-heart" actionListener="#{LoxCtrl.goToXHTMLTemplate('apps/leave/leave_his_main.xhtml')}" update=":centerForm"/>                                
            <p:menuitem value="Staff Leave History" icon="ui-icon-star" actionListener="#{LoxCtrl.goToXHTMLTemplate('apps/leave/staff_leave_his_main.xhtml')}" update=":centerForm"/>                                                
            <p:menuitem value="Board Bulletin" icon="ui-icon-clipboard" actionListener="#{LoxCtrl.goToXHTMLTemplate('apps/board_bulletin/board_bulletin.xhtml')}" update=":centerForm"/>
            <p:menuitem value="Logout" icon="ui-icon-locked" url="index.xhtml" />  

        </p:menu>  

来源:https://stackoverflow.com/questions/17462190/how-to-use-primefaces-3-5-blockui-block-all-page-playout-when-click-pmenu-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!