Re: DataView component path in WicketTester

2010-01-18 Thread Alexander Elsholz
hi, here my "hack" to test tables: override: newChildId() in your dataview - class. and build a common assert method... private static final String PATH_CELLS = ":cells:"; private static final String PATH_ROWS = ":rows:"; protected final void assertTable(String pTablePath, int

Re: DataView component path in WicketTester

2010-01-13 Thread Java Programmer
2010/1/13 Java Programmer : > and in WicketTester I want to: > getWicketTester().assertComponent("sampleDataView: something :title", > DataView.class); > Of course should be: getWicketTester().assertComponent("sampleDataView: something :title", Label.class); Sorry for mistake, Adr ---

DataView component path in WicketTester

2010-01-13 Thread Java Programmer
Hello, Is it possible in WicketTester to check the items which are inside DataView - an example: DataView dataView = new DataView ("sampleDataView", provider, 10) { @Override protected void populateItem(Item sampleItem) { sampleItem.add(new Label("title", ne