ContentAssist Text extends Text { private List<String> proposals; .. protected void checkSubclass() { } public void setProposals(List<String> proposals) { .. } public List<String> getProposals() { return proposals: } }
<z:ContentassistText proposals="{Binding path=defaultRoles}"/>
Hi! I am still playing arround with xwt more or less successfull.
I am trying to build a custom Text Widget which has already some text auto completion available.
The widget looks more or less like this:
ContentAssist Text extends Text { private List<String> proposals; .. protected void checkSubclass() { } public void setProposals(List<String> proposals) { .. } public List<String> getProposals() { return proposals: } }
in my xwt:
Quote:
<z:ContentassistText proposals="{Binding path=defaultRoles}"/>
I have another combo where the binding with defaultRoles works perfect when i set it as input. Also the setter-method in my widget-class is called but the problem is that i always get an array with the binding data instead of the strings.
So do i have to look up the binding my self? I thought i should get the List without any trouble. By the way defaultRoles has a List<String> in the background.
I had another widget where i only bound a String and there it was easy.
Thanks for any help and
best regards weinma
public void setProposals(List<String> proposals) { .. }
public void setProposal(Object object) { ... }