我已經在我的形式豐富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>
看着你的瀏覽器進行轉換/驗證錯誤JavaScript控制檯(雖然我確實看到了'' 那裏)。另外,嘗試使每個彈出式面板都是自己的' ';使得閱讀和調試更容易 –
kolossus
我嘗試你的道路,但沒有結果謝謝 – mogiwara