Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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?

1 Reply:
24. Oct 2008, 15:36 CET | Link

Sorry guys,

We have other converters registered for currecy values so the unsigned double was never invoked.