I have a use case for the type-ahead feature of xe:djComboBox, but I want to limit the entered value to the selectItems for the control. In the following code example the selectItems returns the 50 States from Domino View data source called viewStates. I tried to validate the selected/value using the validator in the code, but any entered value is still accepted. Any ideas?
<xe:djComboBox id="djComboBox2"
value="#{document1.Text_3}" ignoreCase="true"
promptMessage="Type or select a State"
invalidMessage="Not a valid State selection"
validator="#{javascript:(@IsMember(this.getValue(),viewStates.getColumnValues(0)))? true : false;}">
<xp:selectItem itemLabel=""></xp:selectItem>
<xp:selectItems>
<xp:this.value><![CDATA[#{javascript:viewStates.getColumnValues(0)}]]></xp:this.value>
</xp:selectItems>
</xe:djComboBox>