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.

inside custom component

Java Development

Reply
Contributor
Posts: 16
Registered: ‎10-07-2010
My Device: Not Specified

Multiple BrowserField, to display different content

Hello,

 

I have 2 browser fields, but they somehow display the same content.

 

Here's my code:

 

 

setTitle(item.getTitle());
			
			VerticalFieldManager container = new VerticalFieldManager(Manager.VERTICAL_SCROLL);
			
			VerticalFieldManager imagevfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL);
			container.add(imagevfm);
			
			VerticalFieldManager blurbvfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL);
			container.add(blurbvfm);
			
			BrowserField image = new BrowserField();
			image.requestContent(item.getImageUrl());
			imagevfm.add(image);
			
			BrowserField blurb = new BrowserField();
			blurbvfm.add(blurb);
			blurb.displayContent(item.getBlurb(), "http://localhost");
				
			add(container);

 something is wrong here, but I can't figure it out..

 

New Developer
Posts: 6
Registered: ‎10-14-2008
My Device: Not Specified

Re: Multiple BrowserField, to display different content

I've the same issue.

Developer
Posts: 53
Registered: ‎10-29-2010
My Device: Not Specified

Re: Multiple BrowserField, to display different content

Yes, I have the same issue and it just happens in OS 6.

Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: Multiple BrowserField, to display different content

Me also facing the same problem in OS version 6, any fix / solution for the same.

 

Working on it and post you all the status

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Multiple BrowserField, to display different content

I would suggest that you do not use 2 BrowserFields on the same screen.  You will find that on Trackpad devices, it is extremely difficult ot move focus from one BrowserField to another. 

Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: Multiple BrowserField, to display different content

Thanks for the reply

 

i am planning pop all the contents in single BrowserField as a temporary solution

 

Can web works come in action to show HTML contents? any idea? Just wondering to club Java App + web Works

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Multiple BrowserField, to display different content

My uderstanding is that WebWorks is basically a single BrowserField.  So I don't think it will help here.