2014-02-05 28 views
0

我已經在我的形式豐富POPUPPANEL我有轉換它的偉大工程,一個selectOneMenu用於一個問題,如果我做的簡單的形式與面板網格中的分量,但是當我做這在popuppanel值的selectOneMenu用於不發到我的bankingbean我覺得空麻煩popuppanel和selectOneMenu用於與轉換器

我嘗試了多伎倆,但沒有結果

所以在這裏我的視圖代碼.xhtml

<h:form> 
<rich:popupPanel id="piecePanel" autosized="true" width="500" 
    domElementAttachment="form" header="Modifier"> 
    <a4j:outputPanel> 
     <b><h:messages style="color: red;" /></b> 
    </a4j:outputPanel> 
    <rich:panel> 
     <h:panelGrid columns="3"> 
      <h:outputText value="Piece *"></h:outputText> 

      <h:selectOneMenu converter="#{GenericConverter}" 
       value="#{pieceBean.piece}"> 
       <f:selectItem itemLabel="" /> 
       <f:selectItems value="#{listBean.selectPiece}" /> 

      </h:selectOneMenu> 

      <a4j:commandButton action="#{pieceBean.affectpiece2Vehicule}" 
       limitRender="true" render="tablePiece" 
       onclick="#{rich:component('waitFormPanel')}.show()" 
       oncomplete="#{rich:component('waitFormPanel')}.hide()" 
       value="affecter" /> 
     </h:panelGrid> 


    </rich:panel> 

    <rich:panel> 
     <rich:dataTable id="tablePiece" value="#{pieceBean.piecesByVehicule}" 
      var="dataItem" rows="12"> 

      <rich:column> 
       <f:facet name="header"> 
        <h:panelGroup> 
         <h:outputText value="prix" /> 
        </h:panelGroup> 
       </f:facet> 


       <h:outputText value="#{dataItem.piece.prix}" /> 
      </rich:column> 

      <rich:column> 
       <f:facet name="header"> 
        <h:panelGroup> 
         <h:outputText value="action" /> 
        </h:panelGroup> 
       </f:facet> 
       <a4j:commandButton action="#{pieceBean.disaffectpiece}" 
        limitRender="true" render="tablePiece" execute="@this" 
        onclick="#{rich:component('waitFormPanel')}.show()" 
        oncomplete="#{rich:component('waitFormPanel')}.hide()" 
        styleClass="ajoutBtn" value="desaffecte"> 
        <f:setPropertyActionListener value="#{dataItem}" 
         target="#{pieceBean.currentPieceVehicule}" /> 
       </a4j:commandButton> 
      </rich:column> 
     </rich:dataTable> 

    </rich:panel> 



</rich:popupPanel> 

+0

看着你的瀏覽器進行轉換/驗證錯誤JavaScript控制檯(雖然我確實看到了''那裏)。另外,嘗試使每個彈出式面板都是自己的'';使得閱讀和調試更容易 – kolossus

+0

我嘗試你的道路,但沒有結果謝謝 – mogiwara

回答

0

您面臨的問題有多富有:popupPanel在頁面上生成,當您嘗試通過頁面上的螢火蟲找到他的ID時,您會意識到客戶端中不再有任何形式的表格! 唯一的解決方案是確保h:form始終在rich:popupPanel內部,而不是外部。請嘗試讓我知道。

+0

OP有'domElementAttachment = form'。 – mabi

+0

我做,但我覺得我的形式pooup正是:( – mogiwara

+0

和按鈕,你submiting ?? 檢查您的A4J:的commandButton定義唯一ID標籤,並嘗試執行=「@形式」,或者至少執行= 「idOfYoutSelectMenu」,請儘量使用所有提交值的組件id,當你調試你的應用程序時,它更適合你的導航。 –