I am unable to set the default value of h:selectOneRadio as i need radio button to be pre selected
You need to set the default value in the init method of your backing bean:
@ManagedBean
public class YourBackingBean implements Serializable {
private String addressFlag;
@PostConstruct
public void init() {
addressFlag = "0";
}
public String getAddressFlag() {
return addressFlag;
}
public void setAddressFlag(String addressFlag) {
this.addressFlag = addressFlag;
}
}