Hi,
I am using GWT 1.6.4 . I have developed a front end wih user name /
password for login. Post login I am displaying hyperlink upon click
display a suggestion box for search role in a system.
Now on the hyperlink, on a click event, I am writing my asynchronous
method for role search.
On the server side
public void onClick(ClickEvent event) {
displayRequesttoAccessRoleforSelfPage();
doRoleSearch();
}
selfUIService.getITIMRoles(userId, new AsyncCallback<List<String>>() {
public void onFailure(Throwable caught) {
String details =
caught.getMessage();
if (caught instanceof
SelfServiceException) {
details = ((SelfServiceException)
caught).getErrorMessage();
}
errorMsgLabel.setStyleName("errorMessage");
errorMsgLabel.setText("Error: " +
details);
errorMsgLabel.setVisible(true);
nameField.setText("");
passwordField.setText("");
}
public void onSuccess(List<String>
roles) {
displayRoles(roles);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---