PDA

View Full Version : Reading



Estefan
19 Aug 2009, 11:16 PM
hi everybody
im new in ext gwt im using ext gwt 2.0
im developping an application that contains a paging grid that reads information from an xml file.i need to add information to the xml file and make a timer that refreshes the grid every ..ms to show the changes made in the xml file.How can i do it
thanx

Estefan
19 Aug 2009, 11:46 PM
to be more clear. i used your xml grid example and added some codes to it.The grid is refreshing but the problem is that it is not loading the new data added to the xml.

this is my code:

Button Refresh = new Button("Refresh");

final AsyncCallback<Boolean> aCallback = new AsyncCallback<Boolean>() {
public void onFailure(Throwable caught) {
}

public void onSuccess(Boolean result) {
if (result==true) {
MessageBox.alert("Success", "", null);
grid.getStore().commitChanges();

loader.load();

}
}
};

Refresh.addSelectionListener(new SelectionListener<ButtonEvent>() {


@Override
public void componentSelected(ButtonEvent ce) {

service.verify(aCallback);

}

});
i trie to add a refresh button to be able to handle it but i am facing the same problem.And the method verify always returns true.
i need help please