This content has been marked as final.
Show 3 replies
-
1. Re: m:n relations? ("Property not found on type org.hibernate.collection.PersistentSet")
antibrumm.mfrey0.bluewin.ch Feb 17, 2011 10:07 AM (in response to acgrama)If i understand you correctly you have two entites:
- Problem
- SolutionBoth with a bi-directional reference?
- problem.solutions
- solution.problemsI would use a datalist inside a cell in this case:
<rich:dataTable value="#{ManageProblems.problems}" var="problem"> <rich:column> <rich:dataList value="#{problem.getSolutionsAsList()}" var="solution"> <h:outputText value="#{solution.description}" /> </rich:dataList> </rich:column> </rich:dataTable>
-
2. Re: m:n relations? ("Property not found on type org.hibernate.collection.PersistentSet")
acgrama Feb 17, 2011 10:09 AM (in response to acgrama)You understood correctly! Thank you for the suggestion, I'll try it out!
-
3. Re: m:n relations? ("Property not found on type org.hibernate.collection.PersistentSet")
serkan.s.eskici.online.nl Feb 17, 2011 1:50 PM (in response to acgrama)You usually get this error if you try to iterate through a Set inside a datatable or ui:repeat. Change your set into a list or array or use c:forEach which has support for sets.