Hi,

why is the boolean model value of a CheckBox converted to a String and again 
to a boolean (using Strings.isTrue) inside CheckBox#onComponentTag?

boolean -> getValue() -> String -> Strings.isTrue() -> boolean

Calling (getModelObject() == Boolean.TRUE) should be IMHO sufficient.

Since Strings.isTrue(...) is hard-coded and cannot be localized, you will run 
into problems if you provide your own custom BooleanConverter which converts 
localized strings.

WDYT?

Regards,
Bendis

Reply via email to