> class USNumberConverter extends SimpleConverterAdapter { > public String toString(Object value) { > return > NumberFormat.getInstance(Locale.US).format((Number) value); > } > public Object toObject(String value) { > try { > return NumberFormat.getInstance(Locale.US) > .parse((String) value); > } catch (ParseException e) { > throw new RuntimeException(e); > } > } > }
Note that SimpleConverterAdapter was kind of a hack in 1.2 and is removed in 1.3. In 1.2 (and before) converters were too generic, making them too hard to use. In 1.3 you can best implement IConverter directly. Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user