Data from my widget don't appear in other widget [message #656728] |
Mon, 28 February 2011 05:27  |
Eclipse User |
|
|
|
Hello,
I have mine own widget which is rendered with IFrame and puts the data in request:
test : function(xmlData){
if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
var wm = org.eclipse.swt.WidgetManager.getInstance();
var gmapId = wm.findIdByWidget( this );
var req = org.eclipse.swt.Request.getInstance();
req.addParameter( gmapId + ".xmlData", xmlData );
req.send();
}
}
My widget triger an dataChanged event which is handeled in View, the handlet set a text proppert in text widget on the same view. When the method test ist called the dataChanged event is trigered, it is handeled and the text property is set but not appears in client.
What I have to do to transport a new value to client?
best regards
Bogdan
|
|
|
|
|
Re: Data from my widget don't appear in other widget [message #657366 is a reply to message #657354] |
Wed, 02 March 2011 09:59  |
Eclipse User |
|
|
|
Hi Bogdan,
there is no specific document for this. The main point is to remember
that the events in RAP are processed in PROCESS_ACTION phase. Thus, you
need a ProcessActionRunner if you fire an event in READ_DATA phase for
example.
Best,
Ivan
On 3/2/2011 4:35 PM, brokosa@poczta.onet.pl wrote:
> Hi Ivan,
> thx for your reply. I have found a reason of my problem - i have
> called setText to early and it was overwritten.
> Could you tell me where can I find a docu for defining and handling
> widget events?
>
> best regards
> Bogdan
>
|
|
|
Powered by
FUDForum. Page generated in 0.04796 seconds