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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...