Combo-(viewer) XWT-Databinding trouble [message #901158] |
Fri, 10 August 2012 03:27  |
Eclipse User |
|
|
|
Hi!
I got following problem with the comboviewer databinding in xwt.
I want to provide the user with a list of predefined items in the combolist but he should also be able to type some custom text into the viewer.
How can i realize this? (I don't care if i have to use comboviewer or just the combo-widget). When i use the selectionEvent i only get the selected text and null if he typed something custom.
I played around and achieved to get one thing running at a time but not both. I think this should work something like this:
<ComboViewer x:style="BORDER" input="{Binding Path=possibleRoles}">
<ComboViewer.combo text="{Binding Path=roleName}"/>
</ComboViewer>
But i always get a NullPointer exception.
Has anybody an idea how to achieve this?
regards weinma
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds