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