I am working on a page in which i need to delete an item. Once i delete it,the page still shows the value on the page,until i refresh the page manually. Please Advise.
Joined: Jun 11, 2002
Hi there Nitin,
Let's assume you have a Collection/List on your backing bean, and you now want to delete one of the items in that List, from your page. So you select the item you want to delete using commandLink or or whatever, this calls a method in your bean. In your bean you you find out which element in the List was selected, and you need to action on. Then all you do is remove that element from the List and forward back to the same page, by returning null.