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 <saharab...@gmail.com>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: haulynja...@vvthumb.com
> website: http://haulynjason.net
> gtalk: saharab...@gmail.com
> skype: saharabear
> QQ: 378606292
> msn:saharab...@gmail.com <msn%3asaharab...@gmail.com> <
> msn%3asaharab...@gmail.com <msn%253asaharab...@gmail.com>>
> yahoo:jia_hao...@yahoo.com <yahoo%3ajia_hao...@yahoo.com> <
> yahoo%3ajia_hao...@yahoo.com <yahoo%253ajia_hao...@yahoo.com>>
> Twitter: http://twitter.com/saharabear
> Linkedin: http://www.linkedin.com/in/haulyn
>
> Haulyn Jason
>



-- 
Pedro Henrique Oliveira dos Santos

Reply via email to