I am using Java EE with Hibernate, JSF and Seam.
I have a bean with properties of type Integer. They used to be Boolean but I had to change them to Integer because I am using DB2 and DB2 doesnt accepts booleans.
Since <h:selectBooleanCheckbox> only works with Boolean types in the backing bean, I have decided to use <h:selectOneRadio> to serve the same purpose. Now, I have a problem with that. I dont know if its a validation issue or what but when I click the submit button to submit the form, nothing happens. I'm just learning EJB programming and this problem has completely stopped my progress.
Code:
@Entity
@Name("cheese")
@Table(name="cheeses")
public class Customer implements Serializable {
private Integer isCheddar;
public Integer getIsCheddar() {
return isCheddar;
}
public void setIsCheddar(Integer isCheddar) {
this.isCheddar= isCheddar;
}
}
cheese.xhtml
Code:
<h:selectOneRadio id="radioCheeseType" value="#{cheese.isCheddar}" required="no" converter="javax.faces.Integer">
<f:selectItem id="item1" itemLabel="" itemValue="1" />
<s:convertEntity />
</h:selectOneRadio>
Can someone please help me with this and tell me what's wrong. I do not see any error messages on my console so I have no idea what the problem is. Thanks a lot![/code]