rose-website/src/main/java/rose/gwt/client/App.java
/**
     * Add external html resource to a panel. On success also add the given
     * widgets.
     * 
     * @param panel
     * @param html
     * @param widgets
     */
Add external html resource to a panel. On success also add the given
widgets.


Add external html resource to a panel . On success also add the given widgets .
private static void addHtml(final Panel panel, ExternalTextResource html,
            final Widget... widgets) {
        try {
            html.getText(new ResourceCallback<TextResource>() {
                public void onSuccess(TextResource resource) {
                    panel.add(new HTML(resource.getText()));
                    for (Widget w : widgets) {
                        panel.add(w);
                    }
                }
                public void onError(ResourceException e) {
                    reportInternalError("Failed to load external resource", e);
                }
            });
        } catch (ResourceException e) {
            reportInternalError("Failed to load external resource", e);
        }
    }
private static void addHtml ( final Panel panel , ExternalTextResource html , final Widget ... widgets ) { try { html . getText ( new ResourceCallback < TextResource > ( ) { public void onSuccess ( TextResource resource ) { panel . add ( new HTML ( resource . getText ( ) ) ) ; for ( Widget w : widgets ) { panel . add ( w ) ; } } public void onError ( ResourceException e ) { reportInternalError ( "Failed to load external resource" , e ) ; } } ) ; } catch ( ResourceException e ) { reportInternalError ( "Failed to load external resource" , e ) ; } }
Add external html resource to a panel.
Add external html resource to a panel .