jsf 2 - direction="right-down" in rich:menuGroup tag? -


i have problem direction attribute in rich:menugroup tag : pictures : rich:menuitem tag. enter image description here want rich:menuitem moved position pictures. search link has example similar problem : live demo richfaces

here code :

<rich:dropdownmenu showdelay="250" hidedelay="0" submitmode="none" direction="bottom-right"     rendered="#{identity.loggedin , 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> 

how can move position of rich:menuitem in rich:menugroup ?

assuming you're using richfaces 3 available values @direction are:

"right", "left", "auto"(default), "left-down", "left-up", "right-down", "right-up"

see documentation further information.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -