Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » example GMap custom control
example GMap custom control [message #102720] Thu, 21 August 2008 18:27 Go to next message
Eclipse UserFriend
Hi all,

I've been trying to create the GMap custom control by following the short
tutorial in the RAP help pages without success.

After executing the application all I get is a white screen in the browser
(not even the blue background shows up). I get no exception on the console
and in the debugger I can see all threads seem to be up and running. So is
this a problem with the javascript? The javascript in the tutorial seemed to
have an extra unmatched curly bracket in the end of the file, but that
doesn't seem to be the only problem.

How could I troubleshoot this problem?

I have also attached my RAP project in case someone could have a look at it.

Thanks,

Alex


Re: example GMap custom control [message #102772 is a reply to message #102720] Fri, 22 August 2008 00:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

There are naming conventions which you *must* obey. Try importing this
gmap demo project from platform distribution or cvs. It should run.

Alex Ignácio da Silva wrote:
> Hi all,
>
> I've been trying to create the GMap custom control by following the short
> tutorial in the RAP help pages without success.
>
> After executing the application all I get is a white screen in the browser
> (not even the blue background shows up). I get no exception on the console
> and in the debugger I can see all threads seem to be up and running. So is
> this a problem with the javascript? The javascript in the tutorial seemed to
> have an extra unmatched curly bracket in the end of the file, but that
> doesn't seem to be the only problem.
>
> How could I troubleshoot this problem?
>
> I have also attached my RAP project in case someone could have a look at it.
>
> Thanks,
>
> Alex
>
>
Re: example GMap custom control [message #102785 is a reply to message #102720] Fri, 22 August 2008 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Alex,

If the application doesn't even start-up, there is very likely a
JavaScript error in your custom widgets JS-source. You can either have a
look at your browser error console or (more comfortable) use the Firefox
add-on Firebug to see what's going wrong.

Hope that helps,
Stefan.

Alex Ignácio da Silva schrieb:
> Hi all,
>
> I've been trying to create the GMap custom control by following the short
> tutorial in the RAP help pages without success.
>
> After executing the application all I get is a white screen in the browser
> (not even the blue background shows up). I get no exception on the console
> and in the debugger I can see all threads seem to be up and running. So is
> this a problem with the javascript? The javascript in the tutorial seemed to
> have an extra unmatched curly bracket in the end of the file, but that
> doesn't seem to be the only problem.
>
> How could I troubleshoot this problem?
>
> I have also attached my RAP project in case someone could have a look at it.
>
> Thanks,
>
> Alex
>
>
Re: example GMap custom control [message #102917 is a reply to message #102772] Fri, 22 August 2008 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dmitry,

You forgot to attach your project. Could you please do so or point me to the
location where I could get it?

Thanks,

Alex

"Dmitry Pryadkin" <drpadawan@ya.ru> escreveu na mensagem
news:g8lgua$e06$1@build.eclipse.org...
> Hi,
>
> There are naming conventions which you *must* obey. Try importing this
> gmap demo project from platform distribution or cvs. It should run.
>
> Alex Ign
Re: example GMap custom control [message #102927 is a reply to message #102917] Fri, 22 August 2008 09:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Alex,

> You forgot to attach your project. Could you please do so or point me to the
> location where I could get it?

I think it's better to get it from CVS.

:pserver:anonymous@dev.eclipse.org:/cvsroot/technology
org.eclipse.rap/sandbox/org.eclipse.rap.demo.gmaps

At least that's where I've found it earlier.

Cheers
Re: example GMap custom control [message #102953 is a reply to message #102785] Fri, 22 August 2008 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Stefan,

I get two errors in the Firebug console:

The configuration key "_doActivate" in class "org.eclipse.rap.gmaps.GMap" is
not allowed!
for(var key in config){if(!allowed[key])..." in class "'+name+'" is not
allowed!');

[Exception... "'Error: The meta theme to use is not available:
org.eclipse.swt.theme.Default' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
(NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]

The first one at least seems to be ocurring in the internals of qooxdoo. I
have no idea of how to fix them.

Maybe the sample code in the RAP documentation was not kept in sync with the
qooxdoo API (or even Google Maps API).

[]s,

Alex

"Stefan Roeck" <stefan.roeck@cas.de> escreveu na mensagem
news:g8lnf4$tqp$1@build.eclipse.org...
> Hi Alex,
>
> If the application doesn't even start-up, there is very likely a
> JavaScript error in your custom widgets JS-source. You can either have a
> look at your browser error console or (more comfortable) use the Firefox
> add-on Firebug to see what's going wrong.
>
> Hope that helps,
> Stefan.
Re: example GMap custom control [message #103151 is a reply to message #102927] Tue, 26 August 2008 09:01 Go to previous message
Eclipse UserFriend
Hi Dmitry,

The GMap project from their repository works, although I still get some
errors in the qooxdoo log and it's not possible to resize the window.
Anyway, a working example is a big aid in trying to build a custom control
in RAP.

Thanks once again for your help,

Alex

"Dmitry Pryadkin" <drpadawan@ya.ru> escreveu na mensagem
news:g8meo7$8rm$1@build.eclipse.org...
> Hi Alex,
>
>> You forgot to attach your project. Could you please do so or point me to
>> the location where I could get it?
>
> I think it's better to get it from CVS.
>
> :pserver:anonymous@dev.eclipse.org:/cvsroot/technology
> org.eclipse.rap/sandbox/org.eclipse.rap.demo.gmaps
>
> At least that's where I've found it earlier.
>
> Cheers
Previous Topic:How to Programmatically create RWT sessions
Next Topic:Administrator entry point
Goto Forum:
  


Current Time: Mon May 12 14:50:36 EDT 2025

Powered by FUDForum. Page generated in 0.05844 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top