refresh the page

HI

I have implemented a checkbox. I am deleting a data by checking the chackbox. Its deleting fine. But the problem is that its not refreshing the page. The content is still seen on the page even its not there in DB.

handleCheckbox2ValueChange(ValueChangeEvent valueChangedEvent) {

}

Please help me.

Regards

Rishab

[358 byte] By [RishabGuptaa] at [2007-11-27 5:12:26]
# 1
Then just reload the content?
BalusCa at 2007-7-12 10:33:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Balu, I tried to reload the page as well by setting the bean with the current data. Still the problem is there.Rishab
RishabGuptaa at 2007-7-12 10:33:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Maybe you need to rearrange your logic.

Basic example:public class MyBean { // Session scoped bean.

private List<Item> content; // + getter + setter

{

loadContentFromDatabase(); // Preload on 1st view.

}

public void delete() {

Item item = (Item) table.getRowData();

doYourDaoThingToDeleteItem(item);

loadContentFromDatabase(); // Reload.

}

private void loadContentFromDatabase() {

content = doYourDaoThingToLoadItems();

}

}

BalusCa at 2007-7-12 10:33:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...