1 Reply Latest reply on Mar 25, 2011 4:26 PM by Fabian Riako

    a4j support not submitting all values

    Fabian Riako Newbie

      Hi All,

       

       

      I have a input text box that contains fee and a SelectOneMenu for fee type. When the user selects the fee type I need to perform a caluculation and display the result in another text box. I did it in the following way but it is not working evethough it worked in another to pages.

       

      <h:form>

      .

      .

      .

      <a:region>           

      <table>

      <tr>

      <td><h:outputText value="Fee"/></td>                           

      <td><h:inputText size="10" value="#{manager.fee}" /></td>

      <td width="6%"><h:selectOneMenu value="#{manager.feeType}">

      <f:selectItem itemLabel="" itemValue="" />         

      <f:selectItems value="#{dbUtil.feeType}" />

      <a:support event="onchange" reRender="txtFeeTot" ajaxSingle="true" actionListener="#{manager.setFeeAmount}" />

      </h:selectOneMenu>

      </td>

      <td style="PADDING-LEFT: 8px">

      <h:outputText id="txtFeeTot" value="#{manager.feeAmount}">

      <f:convertNumber pattern="$######.0000" />

      </h:outputText>

      </td>

      </tr>

      </table>

      </a:region>

      .

      .

      .

      </h:form> 

       

      The value fee is always 0 in session bean.

       

      Anybody know the reason for it.

       

      Thanks