Why there's no setConverter(IConverter c) just like add(IValidator v) returning the object itself?
see ya
On 5/9/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
currently not. What could be better in your eyes?
We will overhaul the converter interface in the next version so that it should be simpler.
johanOn 5/9/06, Bruno Borges <[EMAIL PROTECTED]> wrote:This is the only way I know (better: I learned from Wiki/Docs/Examples) on how to use MaskConverter:TextField zipCode = new TextField("zipCode") {public IConverter getConverter() {};MaskFormatter zipFormat = null;
try {zipFormat = new MaskFormatter("#####-###"); // Brazillian format} catch(Exception e) {} // never throws
return new UncheckedMaskConverter(zipFormat);}
Isn't a better way to to this?
--
Bruno Borges[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4
--
Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4
