Results 1 to 4 of 4

Thread: How to redirect control from one page to another page(Using EXT GWT (GXT))

  1. #1
    Ext GWT Premium Member
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default How to redirect control from one page to another page(Using EXT GWT (GXT))

    Dear All,

    I am new to EXT GWT (GXT), now i am able to create a GWT small project after reading all the documents and follows the process of how to create a GWT Application with Eclipse. but i want to open another complete Page which will have a GXT control after performing a click event on any button of onModuleLoad page.

    Kindly share your thought with me regarding the above issues.

    Thanks
    Biswajit Mohapatra

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    If you want to open a new page, try Window.open(...). If you want to load a new page, try Window.Location.assign(...).

  3. #3
    Ext GWT Premium Member
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    We would like to load/redirect to a new Java page after finishing work on 1st page, not a static html page. Could you please explain how can we do that or provide a sample application?

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    By "a new Java page", do you mean a new GWT application? If so, it is just a matter of pointing the url at the new page. If you mean a JSP or some other Java framework for building dynamic pages, again, just pass in the new url.

    If you mean to stay on the same page, but load different widgets, this will probably be application specific - they work you have done so far to add widgets to the page will need to be 'undone', and the new widgets added. If you can reuse the main part of the page, you won't need to (or want to) remove everything. If you want to clear everything, one option would be RootPanel.get().clear(), and start adding new widgets.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •