Hi I am working on JSF 1.2 with richfaces. If user select a particular value in dropdown, based on the value one of the text field has to be editable or read-only. if user selects twice the drop down and give the value in input text the value is not refected in backing bean i am getting null value. this happens only in mozilla and not in IE7.I have added a a4j support for dropdown and rerendering. Please help me out in this
Update: my JSF code is:
<h:selectOneMenu value="#{testBean.user}">
<a4j:support event="onchange" action="#{testBean.editUser}" reRender="intxt">
</h:selectOneMenu>
my backing bean source code is:
public void editUser() {
if (StringUtils.equals(user,"OTHER") {
localBean.getUser().setReadOnly(false);
} else {
localBean.getUserValue().setReadOnly(true);
localBean.seUserValue(null);
}
}