Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
kchantp
Posts: 77
Registered: ‎11-20-2008
Accepted Solution

Embedded browser issue/RenderingSession clarification

I have taken the BrowserDemo sample code and tried to create an embedded browser in my application.  It seems, however, that some pages will not be able to load properly.  More specifically, if there are some pages that require some sort of session (meaning subsequent page views require some session variables), the pages won't load. 

 

Looking through the browser demo, it seems like the RenderSession.getBrowserContent(...) method is not too clearly documented in the APIs.  Does it just take the connection and the url and try and get the browser content response, without any knowledge of the previous renderings?  Does it not handle browser sessions correctly? (not supported?)

Please use plain text.
Administrator
MSohm
Posts: 13,066
Registered: ‎07-09-2008
My Carrier: Bell

Re: Embedded browser issue/RenderingSession clarification

Note that the BrowserFieldDemo sample does not implement cookies, which are generally required for a web site session.  Please refer to the following.

 

How To – Enable cookies in BrowserField 
Article Number: DB-00675

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
kchantp
Posts: 77
Registered: ‎11-20-2008

Re: Embedded browser issue/RenderingSession clarification

Thanks Mark.  I'll check that out.
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Embedded browser issue/RenderingSession clarification

Hi,

 

where you able to make this work? i'm encountering difficulties following the how-to article. Thanks 

Please use plain text.