2011-06-01 17 views
0

由於我只是從一個頁面導航到下一個使用richfaces panelMenuItem,那些面板/ panelMenuGroup/panelMenuItem需要被包含在爲了成功導航?我注意到,如果我不包含這些面板元素,沒有任何反應。但是爲什麼我需要將它放在一個表單中,因爲我沒有向服務器提交任何數據。此時,我只是從一個菜單頁導航到下一個菜單頁。請指教。RichFaces:使用panelMenuItem導航從一個頁面到下一個頁面需要被包含在<h:form>

============================================== ============================================

Portofion of代碼:

<ui:composition> 

<h:form> <-- if i removed this, nothing happens!! 

     <rich:panel> 
      <center><span id="clock">&nbsp;</span></center> 
     </rich:panel> 

     <rich:panel> 
      <f:facet name="header"><center>MView Modules</center></f:facet> 
      <rich:panelMenu id="MView" topGroupExpandedRightIcon="triangleDown" 
             topGroupCollapsedRightIcon="triangle" 
             groupExpandedLeftIcon="triangleDown" 
             groupCollapsedLeftIcon="triangle" 
             itemLeftIcon="grid" 
             expandSingle="false"> 
       <rich:panelMenuGroup label="Enquiry Management"> 

        <rich:panelMenuItem>Profile 
        </rich:panelMenuItem> 
        <rich:panelMenuItem action="/sections/securityHoldings">Security Holdings 
        </rich:panelMenuItem> 

回答

1

是的!!您需要將它放在標籤中,因爲您正在從一個頁面導航到另一個頁面。要從一個頁面導航到另一個頁面,您需要向服務器發送請求並向服務器發送請求,以查找需要導航的頁面。

相關問題