You could try a helper method that allows indexed access. As in: userAccount. *membershipsAsList*.0.acceptedTerms
I haven't tried it and guaranteeing the ordering would need to be accounted for. But its a potential direction. -Clint On Fri, May 13, 2011 at 3:04 PM, Sven Meier <s...@meiers.net> wrote: > A set doesn't allow indexed access. > > Sven > > > On 05/13/2011 09:55 PM, datazuul wrote: > >> 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 >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >