You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


When using ListViews in forms, you have to be careful that you set the reuseItems property of the ListView to true (it is false by default). If you don't do this, the components are removed and added again (new instances) everytime, and you will not see any invalid input if your form did not validate.

Set this property e.g. like:

private final class MyListView extends ListView
{
	private MyListView(String id)
	{
		super(id);
		setReuseItems(true);
	}
...
  • No labels