Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Open contents in a new window

    Hi everyone!

    I'm using SmartGWT 2.4 with Eclipse.

    I have developed an application: at the top there is the Administration section, and at the bottom the User section.

    I would like to make a change, and make a "welcome page" with two buttons: one button to choose the Administration view and the other one to choose the User view. When an user clicks on "Open Administration View" button, a new window should be opened with the admin view, displaying the administration contents. The same for the user button.

    So, I'd like to do it as the "Demo application" of the SmartGWT Showcase, in which clicking the "Show Example" button a new window with different contents is opened.

    Can you give me, please, a help about it??

    #2
    Hi,

    If you have a look at :
    http://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/smartgwt/sample/showcase/client/miniapp/MiniAppSample.java?r=1231
    You will see that the button had been "equiped" with a handler which do some cosmetic thing and mainly do appWindow.show();
    appWindow is a subClass of Window: FullScreenApplication

    So in your case you have to write your two Subclasses which extend Window and with after creating one object of each classe do useWindow.hide() + adminWindow.show() in one case and the opposite in the other case.

    Regards

    Alain

    Comment

    Working...
    X