This content has been marked as final.
Show 4 replies
-
-
2. Re: @DataModelSelection and selectOneItem?
igx89 Oct 23, 2007 12:21 PM (in response to igx89)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; } } }
-
3. Re: @DataModelSelection and selectOneItem?
pmuir Oct 24, 2007 5:48 AM (in response to igx89)This is what a converter is for.
Then you can use object setters/getters:public Product getProduct() { return product; } public void setProduct(Produce product) { this.product = product; }
-
4. Re: @DataModelSelection and selectOneItem?
igx89 Oct 24, 2007 9:39 AM (in response to igx89)I wish! I'm using Hibernate, and the entity converter requires JPA :(. I've requested a version for Hibernate in the past, but nothing's been done there yet.