GWT ExternalTextResource with large files

I am trying to get async a large html file with ExternalTextResource:

public interface MyHtmlResources extends ClientBundle { public static final MyHtmlResources INSTANCE = GWT.create(MyHtmlResources.class); @Source("some.html") public ExternalTextResource getSomeHtml(); } MyHtmlResources.INSTANCE.getSomeHtml().getText(new ResourceCallback<TextResource>() { public void onError(ResourceException e) { Window.alert(e.toString()); } public void onSuccess(TextResource r) { html.setHTML(r.getText()); } }); 

In Firefox, the onError method always starts with the message: eval() returned null , and in Chrome I get Uncaught RangeError: Maximum call stack size exceeded .

Do you know if there is a way to work with large files? Am I limited by the maximum call stack size for each browser?

Thanks.

My "solution" used RequestBuilder, as mentioned in the problem that italo post.

+4
source share
1 answer

GWT seems to parse the contents of the file, and it does not work in some browsers when the file is large. Take a look at this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6248

+1
source

All Articles