Arvind
Arvind

Reputation: 6474

smart gwt- is it possible to show an external url within a window that is part of the smart gwt app

I want to implement a scenario where, when a user visits my smart gwt based app for the first time, a popup window is shown with another url. Depending on user's action in that popup, I want to later remove the popup and add content to the main window of app.

But I could not see any way to display an external url in a window/modal window... All I saw was ways to add forms or other elements/layouts etc to a window.

Is it possible to implement the scenario I have suggested above, in Smart GWT?

Upvotes: 0

Views: 1727

Answers (1)

Alain BUFERNE
Alain BUFERNE

Reputation: 2061

You can use the HTMLPane

VLayout yourContentLayout = new VLayout();
HTMLPane htmlPane = new HTMLPane();
htmlPane.setContentsURL("http://www.yourSite.com/");  
htmlPane.setContentsType(ContentsType.PAGE);
yourContentLayout.addMember(htmlPane );
yourModalWindow.addItem(yourContentLayout );

Upvotes: 2

Related Questions