com.smartgwt.client.docs
Interface NoFrames


public interface NoFrames

Don't Misuse Frames

Loading the Smart GWT framework into multiple frames or iframes within the same browser is not a supported configuration, or more accurately, not a supportable configuration, for the following reasons: None of these problems are specific to Smart GWT. They happen with Ajax frameworks in general as well as other RIA technologies. This is why no successful Ajax application has ever used the approach of double-loading a component framework into multiple frames.

The recommended 'Smart GWT Architecture' involves loading as many Smart GWT-based application views as possible in the first page load, then showing and hiding different views as the user navigates through the application.

If, for whatever reason, you cannot follow the Smart GWT Architecture and must load new Smart GWT-based views by contacting the server each time, use the ViewLoader class to load new views, never frames.

Note that the use of IFrames is appropriate in certain circumstances, including loading certain types of content within an HTMLFlow. The only prohibited usage is loading the Smart GWT framework into multiple frames within the same browser.