在rich:menuGroup标签中的direction =“right-down”?

时间:2014-03-10 02:52:56

标签: jsf-2 richfaces

我在rich:menuGroup标签中遇到了direction属性的问题: pictures : rich:menuItem tagenter image description here 我想要丰富:menuItem移动到像那些图片的位置。我搜索链接有类似我的问题的例子: Live Demo Richfaces

这是我的代码:

<rich:dropDownMenu showDelay="250" hideDelay="0" submitMode="none" direction="bottom-right"
    rendered="#{identity.loggedIn and s:hasRole('P01')}">
    <f:facet name="label">Báo cáo</f:facet>
    <rich:menuGroup value="Báo cáo bán hàng" direction="auto">
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportRevenueByItems.xhtml"
                value="Báo cáo doanh thu theo mặt hàng" id="reportRevenueByItem"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportRevenueByCustomers.xhtml"
                value="Báo cáo doanh thu theo khách hàng"
                id="reportRevenueByCustomer" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link id="reportDetailSaleByCustomer"
                view="/report/ReportDetailSaleByCustomers.xhtml"
                value="Báo cáo chi tiết bán hàng theo khách hàng"
                propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportDetailContract.xhtml"
                value="Báo cáo chi tiết hợp đồng theo khách hàng"
                id="ReportDetailContract" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportDetailsSales.xhtml"
                value="Báo cáo chi tiết hợp đồng theo nhân viên"
                id="reportDetailsSale" includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportProductDetailForecast.xhtml"
                value="Báo cáo chi tiết cơ hội" id="reportDetailForecastProduct"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportProductForecast.xhtml"
                value="Báo cáo tổng hợp cơ hội" id="reportForecastProduct"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportGeneralSales.xhtml"
                value="Báo cáo tổng hợp doanh số theo nhân viên" id="saleReport"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link id="targetUser" view="/report/ReportUserTarget.xhtml"
                value="Báo cáo chỉ tiêu doanh số" propagation="none" />
        </rich:menuItem>
    </rich:menuGroup>
    <rich:menuGroup value="Báo cáo công việc" direction="right-down">
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportSyntheticWorks.xhtml"
                value="Báo cáo tổng hợp công việc" id="syntheticWorksReport"
                includePageParams="false" propagation="none" />
        </rich:menuItem>

        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportDetailsWorks.xhtml"
                value="Báo cáo chi tiết công việc" id="reportDetailsWorks"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
    </rich:menuGroup>
    <rich:menuGroup value="Báo cáo công nợ">
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportGeneralDept.xhtml"
                value="Báo cáo tổng hợp công nợ theo khách hàng"
                id="reportGeneralDept" includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportGeneralDeptBySupplier.xhtml"
                value="Báo cáo tổng hợp công nợ theo nhà cung cấp"
                id="reportGeneralDeptBySuppier" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportDetailDeptBySupplier.xhtml"
                value="Báo cáo chi tiết công nợ theo nhà cung cấp"
                id="reportDetailDeptBySuppier" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
    </rich:menuGroup>
    <rich:menuGroup value="Báo cáo khách hàng">
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportCustomerCare.xhtml"
                value="Báo cáo chăm sóc khách hàng" id="reportCustomerCare"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportCustomerNotReSigning.xhtml"
                value="Báo cáo khách hàng không tái ký HĐ"
                id="reportCustomerNotReSigning" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ReportNewCustomer.xhtml"
                value="Báo cáo phát triển khách hàng mới" id="reportNewCustomer"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('P01')}">
            <s:link view="/report/ExportCustomerListFounding.xhtml"
                value="Báo cáo khách hàng thành lập chẵn"
                id="reportCustomerListFounding" includePageParams="false"
                propagation="none" />
        </rich:menuItem>
    </rich:menuGroup>
    <rich:menuGroup value="Báo cáo kho" direction="right-down">
        <rich:menuItem rendered="#{s:hasRole('UU03')}">
            <s:link view="/report/ReportDetailXNT.xhtml"
                value="Báo cáo chi tiết xuất nhập tồn kho" id="reportDetailXNT"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
        <rich:menuItem rendered="#{s:hasRole('UU03')}">
            <s:link view="/report/ReportInventory.xhtml"
                value="Báo cáo tổng hợp xuất nhập tồn" id="reportInventory"
                includePageParams="false" propagation="none" />
        </rich:menuItem>
    </rich:menuGroup>
</rich:dropDownMenu>

如何移动rich的位置:menuItem in rich:menuGroup?

2 个答案:

答案 0 :(得分:0)

假设您使用的是RichFaces 3,@direction的可用值为:

  

“右”,“左”,“自动”(默认),“左下”,“左上”,“右下”,“右上”

有关详细信息,请参阅documentation

答案 1 :(得分:0)

我有一个非常类似的问题,为每个

添加唯一ID
  

富:MENUGROUP

帮助。我希望它也能解决你的问题。 :)