2009-11-03 22 views
0

我有一個縫問題2.1.2關於在SEAM結束談話2.1.2

我想結束談話時,在菜單中的用戶點擊,但是這必須在名爲menu.xhtml或pages.xml中完成。我需要這個,因爲我有以下問題:

  1. 點擊頁面「A」菜單
  2. 單擊「搜索」按鈕,顯示列表A.
  3. 忘記名單「A」,然後單擊頁面'B'在菜單中。
  4. 單擊「搜索」按鈕以顯示列表B.
  5. 再次執行步驟1並且列表「A」在那裏繼續,即使我沒有單擊「搜索」按鈕。

如果我想使用@End我需要創建一個新的方法只是爲了啓動頁面。我tryed在pages.xml和傳播=結束菜單中的標籤,但列表中仍然顯示了結果之前我在點擊該按鈕

菜單按鈕:

<li><s:link propagation="none" action="/T925Historico.seam" value="Historico 925" /></li> 

pages.xml中

<page view-id="/T925Historico.xhtml" login-required="true" action="#{usuarioBean.validaUsuario()}"> 
     <navigation> 
      <rule if-outcome="erro"> 
       <redirect view-id="/error.xhtml"/> 
      </rule> 
      <rule if-outcome="detalhe"> 
       <redirect view-id="/T925Retorno.xhtml" include-page-params="true" /> 
      </rule> 
      <end-conversation/> 
     </navigation> 
    </page> 

謝謝!

回答

2

<end-conversation/>應該是每個<rule>裏面,所以儘量...

<page view-id="/T925Historico.xhtml" login-required="true" action="#{usuarioBean.validaUsuario()}"> 
    <navigation> 
     <rule if-outcome="erro"> 
     <redirect view-id="/error.xhtml"/> 
     <end-conversation/> 
     </rule> 
     <rule if-outcome="detalhe"> 
     <redirect view-id="/T925Retorno.xhtml" include-page-params="true" /> 
     <end-conversation/> 
     </rule> 
    </navigation> 
</page>