You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 25 Members of 4511 |
| Forum: Seam Users |
24. Oct 2008, 15:02 CET | Link |
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?
Sorry guys,
We have other converters registered for currecy values so the unsigned double was never invoked.