| problem with custom widget [message #55736] | 
Fri, 26 October 2007 06:56   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 #56445 is a reply to message #55791] | 
Tue, 30 October 2007 04:39    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 05:36   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.05811 seconds