|
|
Re: RAP Table Update problem [message #5966 is a reply to message #5897] |
Tue, 13 March 2007 18:31 |
Eclipse User |
|
|
|
Originally posted by: jkrause.innoopract.com
Hi Thomas,
This is a known bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=175651
We are currently working on a new table (client side and
LifeCycleAdapter) that will solve the problem, this is one of the main
working areas for M3.
As a (quite ugly) workaround: delete and recreate the table when the
data has been changed:
if( viewer != null ) {
IContentProvider oldProvider = viewer.getContentProvider();
if( oldProvider != null ) {
oldProvider.dispose();
}
viewer.getTable().dispose();
}
viewer = new TableViewer( parent );
viewer.setContentProvider( new ViewContentProvider( id ) );
viewer.setLabelProvider( new ViewLabelProvider() );
Best Regards,
Jochen
Thomas Kühne wrote:
> Hi,
>
> first I like to say that RAP is a realy a cool project!
>
> I installed the M2 release in Eclipse to play around a little bit with RAP.
> I modified the DemoTableViewPart to fetch data via a SOAP Request. That
> works
> fine but I can't refresh the table after the Request. I used the eclipse
> debugger to inspect the contents of the underlaying table data model. The
> data changed after the SOAP request but the view does not refresh. I tried
>
> viewer.setInput(this);
> viewer.refresh(this);
>
> I must say that I am not that familar with RWT/SWT.
>
> Any hint would be appreciated.
>
> Best Regards,
> Thomas
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04448 seconds