public class ExoticTypeEditor extends PropertyEditorSupport {
private String format;
public void setFormat(String format) {
this.format = format;
}
public void setAsText(String text) {
if (format != null && format.equals("upperCase")) {
text = text.toUpperCase();
}
ExoticType type = new ExoticType(text);
setValue(type);
setValue(new ExoticType(text.toUpperCase()));
}
}]]></programlisting>
<para>Finally, we use <classname>CustomEditorConfigurer</classname> to register the new
@ -656,11 +646,7 @@ public class ExoticTypeEditor extends PropertyEditorSupport {
@@ -656,11 +646,7 @@ public class ExoticTypeEditor extends PropertyEditorSupport {