Hello and a question on js/sc/HttpProxy

First of all i’d like to say hello to the SmartClient developer community. I’m new to GWT and Frameworks like SmartClient (or even ExtJS or something). At the moment i’m evaluating different tools and frameworks for a planned development of a business process related web portal.
SmartClient and especially SmartGWT is looking very good to me to fit in well. Now, i’ve set up an example. We need to integrate other Web Applications into our portal - my first choice is to use a HTMLPane for that purpose. The Source Code is the following:

public class Example implements EntryPoint {

	public static final String EXTERNAL ="http://localhost:8080/testApp";
	
	public void onModuleLoad() {
                HTMLPane htmlPane = new HTMLPane();  
                htmlPane.setWidth(230);  
                htmlPane.setHeight(150);  
                htmlPane.setShowEdges(true);  
                htmlPane.setContentsURL(EXTERNAL);
                htmlPane.draw();  
        }
}

Sadly i got the error

since i’m new to GWT as well, this doesn’t tell me much. I think i have to install/configure the use of HttpProxy somehow but haven’t found a way to do so yet. maybe someone could help.

Thank you very much,
Regards

When including an external URL, you need to load it as an IFrame. This is done by calling

htmlPane.setContentsType(ContentsType.PAGE);

Without this it is treated as a cross domain call which has limitations.

See this sample.

Sanjiv

thanks

should’ve found this myself - thank you very much.