primefaces链接在同一页面应用程序中

时间:2017-03-24 07:46:32

标签: jsf primefaces

我有一个index.xhtml作为主要表面。 和另外2个页面.xhtml, 我想在标题中有2个链接,当我在这个链接上陈词滥调时,我仍然在同一页面中,页面中心显示2页内容'p:layoutUnit position =“center”'

<f:view contentType="text/html">
    <h:head>
        <f:facet name="first">
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>PrimeFaces</title>
        </f:facet>
    </h:head>

    <h:body>

        <p:layout fullPage="true">

            <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                <ui:include src="header.xhtml" />
            </p:layoutUnit>

            <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                Footer

            <p:layoutUnit position="center">
               i want 2 other pages.xhtml page be just here
            </p:layoutUnit>

        </p:layout>

    </h:body>

</f:view>

0 个答案:

没有答案