I have this model:
final CompoundPropertyModel userModel = new
CompoundPropertyModel<User>(user);
and want bind a checkbox to a boolean field in
User - getUserAccount - getMemberships - Membership - acceptedTerms (the
boolean field)
I used this expression:
userModel.bind("userAccount.memberships.map.0.acceptedTerms")
and ...memberships.0.acceptedTerms
and ...memberships[0].acceptedTerms
but none of them works...
"memberships" is defined as HashSet (due to Hibernate):
public class UserAccount implements DomainObject<Long> {
...
private Set<Membership> memberships = new HashSet<Membership>();
How to solve this?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-bind-object-in-Hashset-to-CompoundPropertyModel-expression-tp3521031p3521031.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]