Hi Preeth,


public WestPart(Panel borderPanel)
{
        this.parent = borderPanel;
        west.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {

                callPanelRefresh(" ");
        }
  });

}


public  void refreshCenter(String s) {
        CenterPart centerPart=new CenterPart();
        parent.add(centerPart.displayCenter(s),new BorderLayoutData
(RegionPosition.CENTER));
}

@SuppressWarnings("unchecked")
        public void callPanelRefresh(final String userName) {
            getServiceInstance().getLabel(userName, new AsyncCallback() {
                public void onFailure(Throwable caught) {
                Window.alert("Failed to get response from server");
              }
              public void onFailure(){
                  Window.alert("The user name or password you entered is not
valid. Please try again.");
              }
              public void onSuccess(Object result) {
                 String  var= result.toString();
                 Window.alert("After return ..."+var);
                 refreshCenter(var);
              }
            });
   }


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to