Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

actionListener of <a4j:support> not getting fired

843789Jul 7 2009 — edited Sep 8 2009
<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 .

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 6 2009
Added on Jul 7 2009
18 comments
66 views