Create a quick-start, open a Jira ticket and provide a push request fixing it :)
On Thu, Nov 6, 2014 at 11:38 AM, Patrick Davids < patrick.dav...@nubologic.com> wrote: > Hi Paul, > v6.17.0. > > Maybe, I made a too reduced example. > My property navigates further... its more like this: > "list[1].anyProperty[key]" > > Is such a combination allowed? > > Patrick > > Am 06.11.2014 17:24, schrieb Paul Bors: > > I think that should have worked as per: > > http://wicket.apache.org/guide/guide/modelsforms.html#modelsforms_2 > > > > Label label = new Label("firstChildName", new PropertyModel(person, > > "children.0.name")); > > > > What version of Wicket are you using? > > > > > > > > On Thu, Nov 6, 2014 at 11:03 AM, Patrick Davids < > > patrick.dav...@nubologic.com> wrote: > > > >> Hi all, > >> > >> the javadoc of PropertyResolver says, map or list access is possible via > >> keys or index. > >> Accessing an map via key is no problem, but I dont get it working for > >> lists and index. > >> > >> for instance: > >> > >> MyPage extends Page{ > >> > >> private IModel<List<Anything>> list; > >> > >> public MyPage(IModel<List<Anything>> list){ > >> super(); > >> this.list = list; > >> > >> add(new Label("mylabel", new PropertyModel(MyPage.this, > >> "list[1].anyProperty"))); > >> > >> } > >> > >> } > >> > >> ends up in a Exception like this: > >> Last cause: No get method defined for class: class MyPage$1 expression: > 1 > >> > >> I also made a try with "list.1.anyProperty". > >> Not working... > >> > >> Any ideas? > >> > >> best regards > >> Patrick > > >