My JSF radio button doesn't work and I don't really know why. Here' some code:
<h:selectOneRadio value="#{jSFDatabase.type}">
<f:selectItem itemValue="0" itemLabel="Database" />
<f:selectItem itemValue="1" itemLabel="Webservice" />
</h:selectOneRadio>
<h:outputLabel value="#{jSFDatabase.type }" />
If I click the other radio button the value is still 0 (default). Why is this code not working? The Getter and Setter are here:
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
How can I fix that issue?