Not Going to the Action Method
Hi All,
I was just started learning JSF,as we are going to start a New application in JSF.
i was trying with ListBox.. without the list box.. the ..Action method in the backing bean is getting called.but if include this Listbox its not going into the action method.
its always going into the getCountries() mthod. not to the plant method.
Action Mathod -->{backing_login.plant
JSP Code
<h:selectOneMenu id="selectCountry" value="#{backing_login.currentCountry}">
<f:selectItems value="#{backing_login.countries}" />
</h:selectOneMenu>
</htm:td>
</htm:tr>
<htm:tr>
<htm:td styleClass="dotted bdot" width="20%"><h:commandButton value="hello me" action="#{backing_login.plant}" /></htm:td>
Backing Bean Code
public void setCountries(ArrayList countries) {
this.countries = countries;
}
public ArrayList getCountries()
{
System.out.println("Inside of the getCountries.......--1");
countries = new ArrayList();
countries.add(new SelectItem(new Integer(1), "Select"));
countries.add(new SelectItem(new Integer(2), "USA"));
countries.add(new SelectItem(new Integer(3), "INDIA"));
countries.add(new SelectItem(new Integer(4), "CHINA"));
countries.add(new SelectItem(new Integer(5), "UK"));
return countries;
}
please help me i was really stuck with it not able to go forward.
Thanks in Advance
Susy.

