I found a workaround for that case, but clearly it's not the most elegant way to do:
Create a "pseudo extension" of Bean class:
public class BeanExtension {
private Bean instance = new Bean();
public String getName() {
return instance.getName();
}
public void setName(String name)
instance.setName(name);
}
// omitted instance getter and setter methods
}
Since I wanted to override setName method return to "void", now I must use bean.instance
to access it attributes, and bean.name
to bind name on JSF with EL.