views:

43

answers:

1

Hi

I have to create one login module using GWT with RPC with the functionality of login, registration and forgotPassword. Login is working fine. Now i have to proceed for registration and forgot password but i have in trouble to configure entry point. In my login page i have created hyperlink "REGISTER" and "FORGOT PASSWORD" and when i will click on Register Hyperlink i want to open Registration page (created using GWT) but i have no idea to implement that. please provide me any useful suggestion..

Thanks
Arun

A: 

You can create Hyperlink objects that have tokens for example Register and forgotPassword. Then you add a HistoryListener or a ValueChangeHandler (depends on which version of GWT you are using) and then just add the page to the panel or if you want to do a redirect you can do a JSNI redirect.

public static native void redirect(String url)/*-{
        $wnd.location = url;
    }-*/;

Docs for GWT 2.0

stan229
I didn't get it how to use it..Please describe or provide me some small example.
Arun