Nope, it still does not work, so it must be something else. I have tried searching here, but I have only found people using ArrayList as whole, for dropdownmenus etc, not pointing to one specific data. It should be quite simple...
On Fri, Oct 22, 2010 at 11:17 PM, Sven Meier [via Apache Wicket] < ml-node+3007899-704217102-152...@n4.nabble.com<ml-node%2b3007899-704217102-152...@n4.nabble.com> > wrote: > Hi, > > according to the API PropertyModel(this, "house_cost.4") should work: > > > http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/lang/PropertyResolver.html > > Sven > > Am 22.10.2010 22:39, schrieb Zeldor: > > > > > Hi, > > > > I am trying to make an ArrayList, populate it and then display them [and > do > > other stuff later, but I did not get so far]. It does not work though, so > > > what I am missing? > > > > My code looks like that: > > > > > > ... > > ArrayList<Double> house_cost = new ArrayList<Double>(5); > > ... > > [adding some data here] > > > > [form] > > add(new Label("houses_goldcost", new PropertyModel(this, > > "house_cost.get(4)"))); > > ... > > > > I am of course getting the generic "no get method defined for class" > error, > > so I must be doing something wrong. What is the correct way to get just > one > > cell from ArrayList and display it with a Label? > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=3007899&i=0> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=3007899&i=1> > > > > ------------------------------ > View message @ > http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007899.html > To unsubscribe from ArrayList, Label and Model, click > here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=3007849&code=cGdyb25raWV3aWN6QGdtYWlsLmNvbXwzMDA3ODQ5fC0xMTUwMjA4NDM=>. > > > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007950.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