Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » problem with custom widget
problem with custom widget [message #55736] Fri, 26 October 2007 10:56 Go to next message
Eclipse UserFriend
Originally posted by: wen.ai.gillardon.de

Hi,

I'm beginning to create a custom widget and it works. The example 'Gmap'
gives me every help indeed. Now I can pass some text to the browser and
catch it there very well, or call a function on the browser correctly
after doing something on the server.

The problem is, I don't know how can I get some texts(for example) back
from the browser and then catch them on the server side. It should be
possible, but I don't know how. If anybody has a idea, please do me a
favor. Many thanks.

Cheers

Wen
Re: problem with custom widget [message #55791 is a reply to message #55736] Fri, 26 October 2007 10:59 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Wen,

I don't know if you are aware of the fact that there is a Custom widget
tutorial in the online help (or in your Eclipse installation if you used
the update site).

See
http://help.eclipse.org/help33/topic/org.eclipse.rap.help/he lp/html/advanced/custom-widget.html

The interesting part is readData in your LCA. See tutorial and GMap
widget for an example.

Hope that helps!

Greets
Benny

Wen Ai wrote:
> Hi,
>
> I'm beginning to create a custom widget and it works. The example 'Gmap'
> gives me every help indeed. Now I can pass some text to the browser and
> catch it there very well, or call a function on the browser correctly
> after doing something on the server.
>
> The problem is, I don't know how can I get some texts(for example) back
> from the browser and then catch them on the server side. It should be
> possible, but I don't know how. If anybody has a idea, please do me a
> favor. Many thanks.
>
> Cheers
>
> Wen
Re: problem with custom widget [message #56445 is a reply to message #55791] Tue, 30 October 2007 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wen.ai.gillardon.de

Hi Benny,

thanks for your help. I have tried your suggestions and have found
something interesting in GMap.js.

_onMapMove : function() {
if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
var wm = org.eclipse.swt.WidgetManager.getInstance();
var gmapId = wm.findIdByWidget( this );
var center = this._map.getCenter().toString();
var req = org.eclipse.swt.Request.getInstance();
req.addParameter( gmapId + ".mapCenter", center );
}
},

In this part if I change mapCenter into centerLocation just following
the definition in java, it works fine. Could it be a bug?

Greetings.

Wen

Benjamin Muskalla schrieb:
> Hi Wen,
>
> I don't know if you are aware of the fact that there is a Custom widget
> tutorial in the online help (or in your Eclipse installation if you used
> the update site).
>
> See
> http://help.eclipse.org/help33/topic/org.eclipse.rap.help/he lp/html/advanced/custom-widget.html
>
>
> The interesting part is readData in your LCA. See tutorial and GMap
> widget for an example.
>
> Hope that helps!
>
> Greets
> Benny
>
> Wen Ai wrote:
>> Hi,
>>
>> I'm beginning to create a custom widget and it works. The example
>> 'Gmap' gives me every help indeed. Now I can pass some text to the
>> browser and catch it there very well, or call a function on the
>> browser correctly after doing something on the server.
>>
>> The problem is, I don't know how can I get some texts(for example)
>> back from the browser and then catch them on the server side. It
>> should be possible, but I don't know how. If anybody has a idea,
>> please do me a favor. Many thanks.
>>
>> Cheers
>>
>> Wen
Re: problem with custom widget [message #56472 is a reply to message #56445] Tue, 30 October 2007 09:36 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Good catch Wen. Thanks for the info - I just fixed it in CVS.

Greets
Benny

Wen Ai wrote:
> Hi Benny,
>
> thanks for your help. I have tried your suggestions and have found
> something interesting in GMap.js.
>
> _onMapMove : function() {
> if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
> var wm = org.eclipse.swt.WidgetManager.getInstance();
> var gmapId = wm.findIdByWidget( this );
> var center = this._map.getCenter().toString();
> var req = org.eclipse.swt.Request.getInstance();
> req.addParameter( gmapId + ".mapCenter", center );
> }
> },
>
> In this part if I change mapCenter into centerLocation just following
> the definition in java, it works fine. Could it be a bug?
>
> Greetings.
>
> Wen
>
> Benjamin Muskalla schrieb:
>> Hi Wen,
>>
>> I don't know if you are aware of the fact that there is a Custom
>> widget tutorial in the online help (or in your Eclipse installation if
>> you used the update site).
>>
>> See
>> http://help.eclipse.org/help33/topic/org.eclipse.rap.help/he lp/html/advanced/custom-widget.html
>>
>>
>> The interesting part is readData in your LCA. See tutorial and GMap
>> widget for an example.
>>
>> Hope that helps!
>>
>> Greets
>> Benny
>>
>> Wen Ai wrote:
>>> Hi,
>>>
>>> I'm beginning to create a custom widget and it works. The example
>>> 'Gmap' gives me every help indeed. Now I can pass some text to the
>>> browser and catch it there very well, or call a function on the
>>> browser correctly after doing something on the server.
>>>
>>> The problem is, I don't know how can I get some texts(for example)
>>> back from the browser and then catch them on the server side. It
>>> should be possible, but I don't know how. If anybody has a idea,
>>> please do me a favor. Many thanks.
>>>
>>> Cheers
>>>
>>> Wen
Previous Topic:Servlet delegate not registered
Next Topic:Registry conflict (running org.eclipse.equinox.jsp.jasper.registry)
Goto Forum:
  


Current Time: Thu Apr 18 23:38:29 GMT 2024

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

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

Back to the top