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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to