0 Replies Latest reply on Feb 2, 2012 9:01 AM by ramram888

    Number converter issue

    ramram888

      Hi,

       

      My issue concerning number converter is the following:

       

      I m using number converter in order to convert number to specific format as follows

       

      NumberConverter numberConverter = new NumberConverter();

      numberConverter.setPattern("###,###,###.00");

       

      input.setValueExpression("value", app.getExpressionFactory().createValueExpression(context.getELContext(), "#{backBeanBB.doubleValue}", Double.class));

      input.setConverter(numberConverter);

       

      the problem is that when the "#{backBeanBB.doubleValue}"  is null i need the input text to be blank but using number converter transorm it to "0" (zero).

       

      My business differentiate between blank and zero. is there a way to keep the input blank when its value is null?

       

      Regards,

      Ram