[jboss-user] [JBoss Seam] - Re: @DataModelSelection and selectOneItem?

IGx89 do-not-reply at jboss.com
Tue Oct 23 12:21:06 EDT 2007


Ok, I was afraid of that. That might warrant a note in the documentation somewhere?

Also, any chance of support being added in the near future? It gets really tedious to have to do the following:


  | 	public String getProduct() {
  | 		return product != null ? product.toString() : "";
  | 	}
  | 
  | 	public void setProduct(String productObject) {
  | 		// this is incredibly, unbelievable ugly
  | 		for(Product aProduct: products) {
  | 			if(aProduct.toString().equals(productObject)) {
  | 				product = aProduct;
  | 				return;
  | 			}
  | 		}
  | 	}
  | 

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

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



More information about the jboss-user mailing list