<h:selectOneMenu id="exist1" styleClass="selectOneMenu"
value="#{selectBean.selected}" >
<f:selectItems value="#{selectBean.list1}" />
<a4j:support event="onchange" actionListener="#{selectBean.optionChanged}" />
</h:selectOneMenu>
Tag libs:
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
I get a warning message "This tag cannot be nested within the <h:selectOneMenu>" at the below line
<a4j:support event="onchange" actionListener="#{selectBean.optionChanged}" />
SelectBean:
public void optionChanged(ActionEvent e){
try{
logger.debug("IN +++++++++ ACTION +++++ EVENT +++++++ METHOD ++++++++++++");
//FacesContext facesContext = FacesContext.getCurrentInstance();
// this.selected = (Integer)e.getNewValue();
logger.debug("Select Item ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" );
// this.getExistingOwnersInfo(this.selected); //// DB call to fill other fields on the page
// facesContext.renderResponse();
}catch(Exception ex){
logger.debug("In optionChanged Method ----- ERROR");
ex.printStackTrace();
}
}
I tried to comment out everything to atleast see if the method is getting called..
No luck since 3 days..
Please help me .