Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom widgets and TableViewer
Custom widgets and TableViewer [message #485815] Tue, 15 September 2009 07:28 Go to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Greetings,

1. At some point of time T1, an event is generated by a custom widget:

var req = org.eclipse.swt.Request.getInstance();
req.addParameter( this._id + ".addedItems", s );
req.send();

2. Then it comes to LCA:

String addedItems= WidgetLCAUtil.readPropertyValue(widget,
"addedItems");
if (null != addedItems && addedItems.length()>0)
{
widget.onItemsReceived(addedItems);
}

3. I want to add the received items to TableViewer:

protected void onItemsReceived(String items)
{
String[] input = items.split(',');
tableViewer.setInput(input);
}

4. I can't see the items I wanted to be displayed by tableViewer.
However I checked with Firebug and discovered that the tableViewer
contains empty DIV's, as many as there are items.

What can I do to make tableViewer resolving the items?

Cheers,
Dmitry
Re: Custom widgets and TableViewer [message #485816 is a reply to message #485815] Tue, 15 September 2009 07:45 Go to previous message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Well, asyncExec'ing the call to setInput seems to be taking this problem
off.



Dmitry Pryadkin wrote:
> Greetings,
>
> 1. At some point of time T1, an event is generated by a custom widget:
>
> var req = org.eclipse.swt.Request.getInstance();
> req.addParameter( this._id + ".addedItems", s );
> req.send();
>
> 2. Then it comes to LCA:
>
> String addedItems= WidgetLCAUtil.readPropertyValue(widget,
> "addedItems");
> if (null != addedItems && addedItems.length()>0)
> {
> widget.onItemsReceived(addedItems);
> }
>
> 3. I want to add the received items to TableViewer:
>
> protected void onItemsReceived(String items)
> {
> String[] input = items.split(',');
> tableViewer.setInput(input);
> }
>
> 4. I can't see the items I wanted to be displayed by tableViewer.
> However I checked with Firebug and discovered that the tableViewer
> contains empty DIV's, as many as there are items.
>
> What can I do to make tableViewer resolving the items?
>
> Cheers,
> Dmitry
Previous Topic:Update Version RAP 1.2.1 planned?
Next Topic:FileUpload provided from .jar (plugin)
Goto Forum:
  


Current Time: Fri Apr 26 22:53:56 GMT 2024

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

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

Back to the top