Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsXWT + DataBinding + TableViewer Issue
https://www.eclipse.org/forums/index.php/mv/msg/177742/564972/#msg_564972
When using Databinding in XWT using an object ( Transaction.java ) I am
able to show the value of "price"
<Label text="Price:" />
<Label text="{Binding path=price}"/>
However, if I need to show the price in tableviewer
<TableViewer>
<TableViewer.columns>
<TableViewerColumn width="150" text="Price"
displayMemberPath="price" />
</TableViewer.columns>
<TableViewer.control.layoutData>
<GridData horizontalAlignment="FILL" verticalAlignment="FILL"
grabExcessVerticalSpace="true"
grabExcessHorizontalSpace="true" />
</TableViewer.control.layoutData>
</TableViewer>
The Data ( price ) is not rendered in the Table. Even the columns are not
shown.
I tried the following
1) XWT.load(parent, url, ( Transaction ) ( getT [ 0 ] ) ); => Shows up
correctly in Label but not in Table
2) XWT.load(parent, url, getT( ) ) ; => Doesnot show in Label ( correct
behaviour ? ) and does not show in Table
3) XWT.load(parent, url, getTinList ( ) ) ; => Here the object passed is a
List => similar behaviour as in 2).
I had tried even with
<TableViewer input="{Binding Path=transaction}">
Any help is much appreciated.
Thanks,
Best Regards,
Walter G. Prahakar.]]>Walter Mising name2009-11-21T15:32:39-00:00