Hi Martin, I have added that code in the dataview as below.
dataView = new DataView<List<AssignmentDB>>("AssignmentList", new ListDataProvider(assignments)) { public void onConfigure() { *super.onConfigure();* *//am getting error here* setVisible(getDataProvider().size() > 1); } public void populateItem(Item<List<AssignmentDB>> item) { ............. } }; Also in the above code in the thread above , i have add a assignmentdb object with empty values before form submit code, so it is loaded a table with empty row. while onsubmit i have removed the list values and populate the table with new values. I believe I should not add the empty values first.How to correct this ,i have done this because wicket says labels,dataview Ids are not defined,dataview should not be null am not aware of how to handle the null values. please advice and help me. code snap: assignments.add(new AssignmentDB()); dataView = new DataView<List<AssignmentDB>>("AssignmentList", new ListDataProvider(assignments)) { public void populateItem(Item<List<AssignmentDB>> item) { final AssignmentDB assign = (AssignmentDB) item.getModelObject(); item.add(new Label("AOmemberId", assign.getMemberId())); item.add(new Label("AOlossId", assign.getLossId())); }}; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-disable-the-table-while-it-is-empty-in-wicket-tp4666308p4666316.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