Hi,
I've been trying to accomplish a simple task. I just want to be able to determine which item in a drop down the user selected.
<h:selectOneMenu value="#{selectCustomerList.reseller}">
<s:selectItems value="#{resellerList.resultList}" var="reseller" label="#{reseller.reseller}" noSelectionLabel="Select..."/>
<s:convertEntity />
</h:selectOneMenu>
@Stateless
@Name("selectCustomerList")
public class SelectCustomerListAction implements SelectCustomerList
{
@In
private Reseller reseller;
@Logger private Log log;
public String selectCustomerListAction()
{
log.info("reseller: " + reseller.getReseller());
return "customerList";
}
public void setReseller(Reseller reseller)
{
this.reseller = reseller;
}
public Reseller getReseller()
{
return reseller;
}
}
When I run this I keep getting:
javax.el.PropertyNotFoundException: /selectReseller.xhtml @22,70 value="#{selectCustomerList.reseller}": Property 'reseller' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_3
I must be missing something, what's the best way to pass to a method which drop down item has been selected.
Thanks,
Felix