[jboss-user] [JBoss Seam] - Creating a simple dropdown problems

felixk2 do-not-reply at jboss.com
Wed Dec 26 13:28:21 EST 2007


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

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

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



More information about the jboss-user mailing list