Invert checkbox binding?

Is it possible to in a checkbox binding?

class User { private boolean isActive = true; } now I want to display a ComboBox bound to a BeanFieldGroup. But the Checkbox should show:

new CheckBox("Is Inactive"); And if the checkbox is
checked
, I want the user property
isActive = false.
(inversion of what is saved normally through the binding).

Is that possibel?

that’s easy, in your User bean, you can have sth like

[code]
public boolean isInActive(){
return !isActive;
}

public void setInActive(boolean isInActive){
isActive = !isInActive;
}
[/code]and when binding to BeanFieldGroup

userBeanFieldGroup.bind(checkBox, "inActive");