View Single Post
Old 09-11-2009, 08:52 AM   #1 (permalink)
New Member
Join Date: Sep 2009
Model: 7100T
Carrier: AT&T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Using getDisplayableContent to display raw HTML

Please Login to Remove!

Hi. I've overloaded the HttpConnection class so that it returns a string instead of making a connection. But when I call getDisplayableContent(), the resulting field contains no data. I looked at the connection class and the data is in the class. Does anyone know what we need to do for getDisplayableContent() to display the content? I'm not sure what method it is calling from the connection class because I've tried breakpoitns in all the methods, but they don't get called. Thanks for any help.

renderingSession = RenderingSession.getNewInstance();
renderingSession.getRenderingOptions().setProperty(RenderingOptions.CORE_OPTIONS_GUID, RenderingOptions.SHOW_IMAGES_IN_HTML, false);
HttpConnection connection = new CustomHttpConn("This is a test.");
BrowserContent browserContent = _renderingSession.getBrowserContent(connection, null, null);
Field field = browserContent.getDisplayableContent();
Offline   Reply With Quote