hi Iam trying to do onchange selectOneMenu is not working but if I put submit button it is working?(I am using valueChangeListener). any body can help ...when I onchange my combo box, I want to change value in down side combo box ....actually when I select state combobox, only it has to disply cities in my down combobox.
System.out.println("inside listenerStateName"); String value = "";
value = (String)vce.getNewValue();
System.out.println("********* The new Value is = "+value); FacesContext fc = FacesContext.getCurrentInstance(); fc.renderResponse(); deemListBO= this.serviceLocator.getConcreteDeemListService().getCity(value); setCity(deemListBO.getCity()); System.out.println("********* The new Value is = "+city);
System.out.println("inside listenerStateName"); String value = "";
value = (String)vce.getNewValue();
System.out.println("********* The new Value is = "+value); FacesContext fc = FacesContext.getCurrentInstance(); fc.renderResponse(); deemListBO= this.serviceLocator.getConcreteDeemListService().getCity(value); setCity(deemListBO.getCity()); System.out.println("********* The new Value is = "+city);
}
any body can help.
Richard Green
Ranch Hand
Joined: Aug 25, 2005
Posts: 536
posted
0
what is the scope of your managed bean?
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
JR Yalbets
Greenhorn
Joined: Oct 31, 2006
Posts: 5
posted
0
Add
to the selectOneMenu tag and it should work. This will "short circuit" the lifecyle and be handled right away instead of being queued and processed later when submitted.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.