Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Data from my widget don't appear in other widget
Data from my widget don't appear in other widget [message #656728] Mon, 28 February 2011 10:27 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 4
Registered: February 2011
Junior Member
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 #656990 is a reply to message #656728] Tue, 01 March 2011 09:16 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Bogdan,
are you sure that the text property is set in the Text widget on the
server-side? Are your listeners notified for dataChanged event? One of
the common mistakes with custom event processing is, that the event
firing is not wrapped in ProcessActionRunner like:
ProcessActionRunner.add( new Runnable() {
public void run() {
// create event and notify listeners here
}
} );
Best,
Ivan

On 2/28/2011 12:27 PM, brokosa@poczta.onet.pl wrote:
> 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 #657354 is a reply to message #656990] Wed, 02 March 2011 14:35 Go to previous messageGo to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 4
Registered: February 2011
Junior Member
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
Re: Data from my widget don't appear in other widget [message #657366 is a reply to message #657354] Wed, 02 March 2011 14:59 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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
>
Previous Topic:[ANN] RAP 1.3.2 is available
Next Topic:What apart from the "ratio" value affects division of space within a perspective?
Goto Forum:
  


Current Time: Thu Apr 25 17:59:36 GMT 2024

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

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

Back to the top