Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser won't show in RAP 1.4.2
Browser won't show in RAP 1.4.2 [message #947362] Tue, 16 October 2012 23:08 Go to previous message
Erwin Hogeweg is currently offline Erwin Hogeweg
Messages: 8
Registered: July 2009
Junior Member
I am trying to open an embedded browser in a RAP application, but I must be doing something wrong because it doesn't show up.

As far as I can see this is just standard code:

link.addSelectionListener(new SelectionAdapter() {
	@Override
	public void widgetSelected(SelectionEvent event) {
		try {
//			Browser b = new Browser(parent, SWT.NONE);
			Browser b = new Browser(parent.getShell(), SWT.NONE);
//						b.setUrl("http://www.eclipse.org");
						b.setText("<html><body>This is Unicode HTML content from memory</body></html>"); 
					} catch (SWTError e) {
						// Error handling here
					}

				}
			});


I can see the request go out, but the page is never shown.

If I replace it with the ExternalBrowser it works... but not as desired.

Any insight is highly appreciated.

Using Eclipse RAP 1.4.2 on Mac OS X.

Kind Regards,

Dutch.
 
Read Message
Read Message
Read Message
Previous Topic:Use Calendar component (no Datepicker)
Next Topic:Update View Dynamically?
Goto Forum:
  


Current Time: Wed May 22 21:16:01 EDT 2013

Powered by FUDForum. Page generated in 0.01745 seconds