I have a CompoundPropertyModel which maps to my Object.
e.g.
final TextField<String> adresseName = new TextField<String>("Adresse");
maps to
public class Invoice implements Serializable{
private String adresse;
public String getAdresse() {
return adresse;
}
public void setAdresse(String adresse) {
this.adresse = adresse;
}
}
But if the object adresse is null or not set, I want a default value e.g. “” to be set into the textfield.
How could I do that?
regards, dave
setConvertEmptyInputStringToNull(false) should do it.