Hi,
We are using SmartGWT Pro 3.0 version.
How we can display the error message sent from server, I did not found any API to get the error message set on server, below is my code example.
On server side:-
dsResponse.setFailure();
List<String> errors = new ArrayList<String>();
errors.add("some error message");
dsResponse.setErrors(errors);
On client side:-
listGrid.addEditFailedHandler(new EditFailedHandler()
{
@Override
public void onEditFailed(EditFailedEvent event)
{
// some business logic
// how to display the error message received from server
SC.say();
}
});
We are using SmartGWT Pro 3.0 version.
How we can display the error message sent from server, I did not found any API to get the error message set on server, below is my code example.
On server side:-
dsResponse.setFailure();
List<String> errors = new ArrayList<String>();
errors.add("some error message");
dsResponse.setErrors(errors);
On client side:-
listGrid.addEditFailedHandler(new EditFailedHandler()
{
@Override
public void onEditFailed(EditFailedEvent event)
{
// some business logic
// how to display the error message received from server
SC.say();
}
});
Comment