Problem with getting data from a ListView

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem with getting data from a ListView

markus139
Hello,

I've got a bit of a problem when working with ListView's. I searched a lot of tutorials, but I didn't came up with a solution. So here's the problem:

skillzList = SkillListProxy.getInstance().getAllSkillz();

			ListView<SkillzBean> skillListView = new ListView<SkillzBean>("skillz", skillzList) {

				private static final long	serialVersionUID	= 1L;

				@Override
				protected void populateItem(final ListItem<SkillzBean> item) {
					SkillzBean skill = item.getModelObject();

					item.add((new Label("skillType", skill.getSkillType())));
					item.add(new Label("skillName", skill.getSkillName()));
					item.add(new Label("stufe", skill.getStufe()));
					item.add(new Label("maxStufe", skill.getMaxStufe()));
					item.add(new Label("kostenProStufe", skill.getKostenProStufe()));
					item.add(new Label("kosten", skill.getKosten()));
					item.add(new Label("anmerkung", skill.getAnmerkung()));

				}
			};
			skillListView.setReuseItems(true);
			skillListView.setOutputMarkupId(true);

			add(skillListView);

			add(new Button("saveButton") {
// here I can't get any updated data from skillzList
}

How would I have to write it differently so that I can get the updated data?