2013-06-27 22 views
2

我就簡單的應用程序正與RichFaces的3.3.3「刪除」,我想從一個擴展表不能取得在彈出的RichFaces面板

這裏「刪除」的項目是我的豆代碼

public void remove(){ 
     System.out.println("suppression effectué" + this.selected); 

    } 

這是我的面板代碼

<rich:modalPanel domElementAttachment="form" id="confirmation" autosized="true"> 
      Are you sure you want to delete the row? 
      <h:form> 
      <h:commandButton value="Cancel" onclick="#{rich:component('confirmation')}.hide(); return false;" /> 
      <h:commandButton value="Delete" action="#{backGesDS.remove}" /> 
      </h:form> 
     </rich:modalPanel> 

,但不幸的是我有這個錯誤

 javax.faces.FacesException: javax.el.ELException: /gesDS.xhtml @53,172 onclick="#{rich:component('confirmation')}.show();return false": Function 'rich:component' not found 

你能幫我嗎?從我從你的問題
瞭解

+0

糟糕的英國BTW:P – Loko

+0

感謝,在此任何回答? – daly

+0

不用對不起我的編程語言:p – Loko

回答

2

答案 與此代碼

onclick="if (!ajaxRequestContainsErrors()) Richfaces.hideModalPanel('confirmation');" 

改變你的onclick代碼cancel按鈕這裏您cancel按鈕得到錯誤不是delete按鈕。
,如果可能的變化h:commandButtona4j:commandButton隱藏模型面板採用了頁面刷新

+0

它的工作原理!謝謝 – daly

相關問題