I dont see any issues here... I have never used GWT-EXT so if there is any
problems in usage of BorderLayoutPanel thn i wont be able to say.... I
suppose that u are seeing the alerts in the onSUccess and all.... May be u
can try first removing the old panel from the center and then adding the new
panel.

On Fri, Dec 5, 2008 at 10:43 PM, rajasekhar <[EMAIL PROTECTED]> wrote:

>
> Hi Preeth,
>
>          Here is my WestPart click implementation,I am able to add
> the new CenterPart class to the BorderLayout Panel,but it is not
> refreshing the centerWindow.No error is coming. Please  let me know is
> there any changes I need  to do.
>
> 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