| Author |
Refreshing the backing bean
|
Nitin Tonk
Greenhorn
Joined: Jun 24, 2008
Posts: 14
|
|
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.
|
 |
Darryl Nortje
Ranch Hand
Joined: Jun 11, 2002
Posts: 140
|
|
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.
|
 |
Nitin Tonk
Greenhorn
Joined: Jun 24, 2008
Posts: 14
|
|
Thanks Darryl for the response.
|
 |
Darryl Nortje
Ranch Hand
Joined: Jun 11, 2002
Posts: 140
|
|
no probs. It's the WEEEEEEEEEEEEEEKEND. Enjoy it everyone.
|
 |
 |
|
|
subject: Refreshing the backing bean
|
|
|