[jboss-user] [JBoss Seam] - valueChangeListener problem

hager do-not-reply at jboss.com
Fri Nov 9 10:30:10 EST 2007


hello,
I'm trying to use valueChangeListener, but i have a problem
the method in valueChangeListener is never called!!
what's wrong in my code?

page .xhtml

<h:form id="changerForm" styleClass="edit">
  | 			
  | 			<h:selectOneMenu value="#{currentSociete}" id="selectedSociete" onchange="this.form.submit();" valueChangeListener="#{changerSociete.onChangeSociete}">
  | 					<s:selectItems value="#{loggedUser.listeSocieteUsers}"
  | 									   var="societeUser"
  | 									   label="#{societeUser.societe.codeSociete}"/>
  | 									   <s:convertEntity />
  | 					</h:selectOneMenu>
  | 
  | </form>

My SFSB : 
@Stateful
  | @Name("changerSociete")
  | public class ChangerSocieteBean implements ChangerSociete {
  | 	
  | 
  | 	@Begin @Create
  | 	public void init()
  | 	{
  | 		System.out.println("Debut du Bean Session changerSociete");
  | 	}
  | 	
  | 	public void onChangeSociete(ValueChangeEvent event) {
  | 		System.out.println("Event : " + event);
  | 		System.out.println("New value : " + event.getNewValue());
  | 	}
  | 	
  | 	
  | 	public String getNouvelleSociete()
  | 	{
  | 		System.out.println("getNouvelleSociete () ");
  | 		return "/Societe.xhtml";
  | 	}
  | 	
  | 	@Remove @Destroy
  | 	public void destroy()
  | 	{
  | 		System.out.println("Mort du Bean Session changerSociete");
  | 	}
					
please help me, I'm desperate :(
thx for help!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103289#4103289

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103289



More information about the jboss-user mailing list