1 Reply Latest reply on Oct 24, 2008 3:36 PM by João Bosco Monteiro

    Using @Converter(forClass=java.lang.Double)

    João Bosco Monteiro Newbie

      Hi guys,

      In my application, negative numbers (Integer and Double) are not allowed so I tried to replace default converters for my own UnsignedIntegerConverter and UnsignedDoubleConverter that check if the number is positive:

      @org.jboss.seam.annotations.faces.Converter(forClass = Integer.class)
      public class UnsignedIntegerConverter implements Converter {

      @org.jboss.seam.annotations.faces.Converter(forClass = Double.class)
      public class UnsignedDoubleConverter implements Converter {

      The UnsignedIntegerConverter works fine but UnsignedDoubleConvert is never called.

      Someone could turn the lights on?