I have a custom converter registered for Boolean.class that converts "yes"
to Boolean(true) and "no" to Boolean(false). When the RadioChoice loads the
converter is never called.
<code>
private static final List<String> IRREGULAR_HEARTBEAT =
Arrays.asList(newString[] {
"yes", "no" });
RadioChoice irregular = new RadioChoice("irregularHeartbeat",
newPropertyModel(bloodPressure,
"irregularHeartbeat"), IRREGULAR_HEARTBEAT).setSuffix(" ");
BloodPressure Object:
public Boolean isIrregularHeartbeat() {
return bloodPressure.isIrregularHeartbeat();
}
public void setIrregularHeartbeat(Boolean value) {
bloodPressure.setIrregularHeartbeat(value);
}
</code>
Thanks,
--jim