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

IGx89 do-not-reply at jboss.com
Tue Oct 23 11:11:28 EDT 2007


Does @DataModelSelection work with selectOneItem, when using s:selectItems? I'm trying to use it, but it always just points at the first item in the model.


  | 	@DataModel(scope=ScopeType.PAGE) private List<Product> products;
  | 	
  | 	@DataModelSelection private Product product;
  | 	
  | 	@Factory(value="products")
  | 	public void initProducts() {
  | 		products = ProductHelper.fetchProducts(database);
  | 	}
  | 


  | 		<h:selectOneMenu>
  | 			<s:selectItems value="#{products}" var="product" label="#{product.productDesc}" />
  | 		</h:selectOneMenu>
  | 

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

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



More information about the jboss-user mailing list