Hi All,
Im trying to pass parameter from combo box to action class. below is my cascading combo box. how can i get value of first combo box to action class to get list values to second combo box. i have created companyId(Long) setter and getter in action class but its always coming as value 1. please help me how to pass the value of first combo box to action class. below is my snipet.
<kendo:comboBox name="companyId" filter="contains" placeholder="Select company..." style="width: 50%;" suggest="true" dataTextField="unitName" dataValueField="id">
<kendo:dataSource data="${organizationUnitsList}"></kendo:dataSource>
</kendo:comboBox>
<label for="payGpName">Pay Group Name:</label>
<kendo:comboBox name="payGpName" filter="contains" placeholder="Select company..." style="width: 50%;" suggest="true" autoBind="false" cascadeFrom="companyId" dataTextField="payGpName" dataValueField="id">
<kendo:dataSource serverFiltering="false">
<kendo:dataSource-transport>
<kendo:dataSource-transport-read url="/reports/misreports/loadPayGroup" type="POST" contentType="application/json"/>
<kendo:dataSource-transport-parameterMap>
<script>
function parameterMap(options,type) {
return JSON.stringify(options);
}
</script>
</kendo:dataSource-transport-parameterMap>
</kendo:dataSource-transport>
</kendo:dataSource>
</kendo:comboBox>