开发者

GWT Entry point Configuration

开发者 https://www.devze.com 2023-01-18 15:25 出处:网络
HiI have to create one login module using GWT with RPC with the functionality of login, registration and forgotPassword. Login is working fine. Now i ha开发者_开发问答ve to proceed for registration an

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 ha开发者_开发问答ve 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消