XWT + DataBinding + TableViewer Issue [message #564972] |
Sat, 21 November 2009 15:32 |
Walter Mising name Messages: 128 Registered: July 2009 |
Senior Member |
|
|
Hi,
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02699 seconds