listOnListViewModel.remove(resource); than you remove the data form your db (service.remove()), and your view
On Thu, Nov 12, 2009 at 10:06 AM, Haulyn R. Jason <[email protected]>wrote: > Hi: > > I am using AjaxFallbackLink. > > I have a ListView in a container, and a AjaxFallbackLink per row for delete > the current row. But When I click the link, I find the data is deleted but > the current ListView doesn't refresh. I think that's because the list > object > didn't be refreshed, but I do not know where to put my code. > > The following is my AjaxFallbackLink code: > > item.add(new AjaxFallbackLink("removeLink") { > > @Override > public void onClick(AjaxRequestTarget target) { > _resourceForm.setEnabled(false); > _securityService.removeResource(resource); > _resources = _securityService.queryResources(); > ------------> I update my list model here > info(success"); > target.addComponent(_listContainer); > target.addComponent(_resourceForm); > } > }); > > Is there something I forget to? > > -- > Thanks! > > VVThumb Production > > Location: Shumagang 6H-8, Jinan, Shandong, China 250000 > Mobile: +086-15864011231 > email: [email protected] > website: http://haulynjason.net > gtalk: [email protected] > skype: saharabear > QQ: 378606292 > msn:[email protected] <msn%[email protected]> < > msn%[email protected] <msn%[email protected]>> > yahoo:[email protected] <yahoo%[email protected]> < > yahoo%[email protected] <yahoo%[email protected]>> > Twitter: http://twitter.com/saharabear > Linkedin: http://www.linkedin.com/in/haulyn > > Haulyn Jason > -- Pedro Henrique Oliveira dos Santos
