2 Replies Latest reply on Nov 29, 2007 5:41 AM by Ilya Shaikovsky

    Help with <a4j:form>

    roy kachouh Newbie

      Hi I'm trying to submit an a4j form. I am using the following code.

      
      <h:panelGrid columns="2" id="calculationEntry" width="300">
       <h:column>
       <h:selectOneListbox size="1" value="#{API.productDetailScreen.chosenCalculation}" styleClass="mySelectOne">
       <f:selectItems value="#{API.productDetailScreen.allCalculationList}" />
       </h:selectOneListbox>
       </h:column>
       <h:column>
       <a4j:form id="toolbar" ajaxSubmit="true" reRender="calculationList">
       <a4j:commandButton action="#{AJAX_ASSOCIATE_PRODUCT_CALCULATION.processAjaxRequest}" value="Assign" style="background-color: #cc0000; font-weight: bold; font-size: 12px; color: white;"/>
       </a4j:form>
       </h:column>
       </h:panelGrid>
      


      The form submits to my ajax listener, but my select box is never bound to a backing bean. I tried wrapping the a4j:form outside the select box, but then it does not submit. What am I doing wrong?