Skip to Content

commons Dropdow binding not working

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}" />
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 23, 2018 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.

    Add comment
    10|10000 characters needed characters exceeded