1 Reply Latest reply on Oct 24, 2007 5:00 AM by Georg Raffer

    a4j:support + f:convertNumber  problem

    Georg Raffer Newbie


      I have a rich:datatable with form fields. These fields have an onchange listener and a converter:

      <h:inputText id="amountT" binding="#{ig003Update.tamntQty}" immediate="false" value="#{ibtl.m.tamntQty}" style="width:50px;">
       <f:convertNumber minFractionDigits="2" groupingUsed="false" locale="#{user.locale}" />
       <a4j:support immediate="true" action="#{ig003Update.changeT}" event="onchange" reRender="data" />

      When changing a value the ig003Update.changeT method is executed:

      public String changeT() {
       logger.debug("Executing change T");
       Ig003Row row = (Ig003Row) dataTable.getRowData();
       // binded field: update current value & validate (if required)
       // old value, if converter is used
       logger.debug("tamntQty value: " + row.getM().getTamntQty());

      When no converter is used, the updated value row.getM().getTamntQty() is correct, but when using the converter the value is not set.

      Any ideas?

      Thanks, Georg