Skip to Content

commons Dropdow binding not working

Feb 23 at 08:40 AM


avatar image

Hi All,

I am using dropdown box is my application which is based on 1.28 version

I am binding Dropdown as below.

Now when i am doing some change.. My model is getting updated but view does not reflect the selected key.

I tried refreshing model, attachingRequestcomplete as well as updateBindings on model.

also explicitly tried to setting selectedKey, value , selectedItemId on country dropdown still could not change the value.

<commons:DropdownBox id="country" items="{vendorModel>/}" change="vendorListChange" selectedKey="{vendorModelSelectedKey>/VENDOR_NAME}">
								<core:ListItem text="{vendorModel>VENDOR_NAME}" key="{vendorModel>VENDOR_NAME}" />
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bernard Le Tourneur Feb 23 at 10:17 AM

Do you really have 2 models: 1 being 'vendorModel' and the other 'vendorModelSelectedKey' because, in its current form, that's what your XML View snippet would require.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Yes there are 2 seprate models.