1 Reply Latest reply on Oct 24, 2008 3:36 PM by joaobmonteiro

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

    joaobmonteiro

      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)
      @Name("unsignedIntegerConverter")
      public class UnsignedIntegerConverter implements Converter {
      ...
      }
      


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



      The UnsignedIntegerConverter works fine but UnsignedDoubleConvert is never called.


      Someone could turn the lights on?