Re: how to redirect to another EntryPoint class

2008-11-25 Thread jossey
Hi Raja, I think you could avoid showing the login page on refresh by including a logic in the login module by which a. Check whether the current session is authenticated. Contact the server and find this out. b. If already authenticated load the Main page view. c. If not load the Login view.

Re: how to redirect to another EntryPoint class

2008-11-25 Thread Rick
Hi For redirection you can use following method: public static native void reDirectPage(String html)/*-{ var text = $wnd.location.href; var index = text.lastIndexOf("/"); var subString = text.substring(0,index+1); var targetString = subString+html; $wn

Re: how to redirect to another EntryPoint class

2008-11-24 Thread Not Ken Shabby
The following code was 'hand extracted and modified" from a project I am working on. Therefore there maybe typos. There are also references / usages of classes not shown here, but you do not need them. The basic flow is: 1. In your class which implements "EntryPoint" create an instance of a Logon

Re: how to redirect to another EntryPoint class

2008-11-24 Thread rajasekhar
I need to redirect to home page.because the problem without redirecting is when I refresh the home page it is going to login page again .Please let me know how to handle this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: how to redirect to another EntryPoint class

2008-11-21 Thread Not Ken Shabby
Why would you want to do this? After login -in your onSucess() just replace your login component with you main application component and go from there, there is no need to 'redirect'. On Nov 21, 8:36 am, rajasekhar <[EMAIL PROTECTED]> wrote: > Hi All, > >        

how to redirect to another EntryPoint class

2008-11-21 Thread rajasekhar
Hi All, how to redirect to another EntryPoint class in GWT.I have a login page (home page),after login it is coming to onSuccess function,but how to redirect to the another EntryPoint class.I am using Window.open(URL, "_self", "") it is working in hosted mode