Edward
unread,Feb 27, 2008, 10:26:56 PM2/27/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT-Ext Developer Forum
It seems that StoreListener.onLoadException(Throwable error) dose not
work. Any one can help?
Here is my test code:
Store store = new Store(httpProxy, jsonReader)
store.addStoreListener(new StoreListenerAdapter() {
public void onLoadException(Throwable error) {
MessageBox.alert(error.toString());
}
});
In server side
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
// set response headers and content type
response.setHeader("Expires", "-1");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-control", "no-cache");
response.setHeader("Content-Type", "text/html; charset=utf-8");
response.setContentType("text/html; charset=utf-8");
// always send error to client to test
onLoadException()
response.sendError(500);
}
The onLoadException() is expected to be called. But nothing happened.