Hello, I am trying for a ListView inside a Listview which are inter dependent. But, the error msg I am getting is WicketMessage: Unable to find component with id 'allocation' in [MarkupContainer [Component id = 0]]. This means that you declared wicket:id=allocation in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
Here is my code... add(new ListView<Asset>("assets", assetListModel) { @Override protected void populateItem(final ListItem<Asset> item) { // AssetName(general admissions tickets) item.add(new Label("assetNameLabel", new PropertyModel<String>( item.getModel(), "assetName"))); List<Allocation> allocationListModel = (List<Allocation>) getAllocation(((Asset) item .getModelObject()).getAssetID()); add(new ListView<Allocation>("allocation", allocationListModel) { @Override protected void populateItem(ListItem<Allocation> item) { Allocation alloc = (Allocation) item.getModelObject(); item.add(new Label("regionNameLabel", alloc .getRegionName())); // item.add(new Label("regionNameLabel", new // PropertyModel<String>(item.getModel(), // "regionName"))); } }); }// End of populate item Asset });// End of List View Asset The markup being.. Asset Allocation <div class="box"> <table > <tr wicket:id="allocation" > <th wicket:id="regionNameLabel" >Region</th> <th>Business Unit</th> <th>Country</th> <th>Request Type</th> <th>Exceptions</th> <th>Qty</th> </tr> </table> </div> The allocation is dependent on Asset id... Any help is appreciated... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-inside-a-ListView-tp3550315p3550315.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