Bug 305790 - [DataBinding] dataContext switch doesn't work with nested component
Summary: [DataBinding] dataContext switch doesn't work with nested component
Status: NEW
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-14 05:16 EDT by Yves YANG CLA
Modified: 2013-01-24 15:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves YANG CLA 2010-03-14 05:16:54 EDT
Here is an example of master/detail. Master is implemented in TableViewer. Detail is implemented in a nested component. 

	<TableViewer input="{Binding Path=orders}" Name="master">
		<TableViewer.columns>
<TableViewerColumn width="150" text="id" bindingPath="id"/>
<TableViewerColumn width="150" text="state" bindingPath="state"/>
		</TableViewer.columns>
		<TableViewer.table HeaderVisible="true"/>
		<TableViewer.control.layoutData>
			<GridData horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
		</TableViewer.control.layoutData>
	</TableViewer>
	<k:OrderView Name="details" dataContext="{Binding ElementName=master,Path=singleSelection.(z:Order)}">
		<k:OrderView.layoutData>
			<GridData horizontalSpan="2" horizontalAlignment = "FILL" grabExcessHorizontalSpace="true"/>
		</k:OrderView.layoutData>
	</k:OrderView>

This example doesn't work with 1.0M4
Comment 1 Paul Webster CLA 2010-03-16 09:17:33 EDT
Changes to org.eclipse.e4.xwt.core.IBinding were released, and now there is a compile error in org.eclipse.e4.xwt.tools.ui.designer.loader.DataBindingTrack

PW