add the DataTable in a WebmarkupContainer and repaint the container cheers dipu
On Thu, Jun 19, 2008 at 4:27 PM, Manuel Corrales <[EMAIL PROTECTED]> wrote: > Hi, i have an input and a link. The link is an ajax link, and then i want > to > update a table on the same page according to the input. > > final DataView table = new DataView("table", new > ListDataProvider(Collections.EMPTY_LIST)) { > public void populateItem(final Item item) { > item.add(new Label("nroAparato","test")); > }}; > table.setOutputMarkupId(true); > add(table); > > AjaxLink link = new AjaxLink("linkSearchCliente") { > > @Override > public void onClick(AjaxRequestTarget target) { > target.addComponent(table); > } > }; > > I get this error: > > *This component is a repeater and cannot be repainted via ajax directly. > Instead add its parent or another markup container higher in the > hierarchy.* > > How can i solve this, i was unable to find any simple table update on the > web. > > Thanks in advance!! >