I am using spring in my project. As spring automatically fills form fields that came from command object. There comes a comboBox case where command object was having value newtypename (lowerCase) and the list, that was populating comboBox have this name as NewTypeName (camelCase). These values did not match and my comboBox value was not automatically selected.
When I set command object having value NewTypeName; it matched and the form loaded with this value selected in comboBox.
<form:select multiple="single" path="pluginType" id="pluginType" cssClass="dropDownSelect-small" tabindex="3" onchange="changeState()">
<form:option value="0" label="Select" />
<form:options items="${pluginTypeList}" />
</form:select>
How can I achieve a situation where all cases run perfect i.e. whether I type lowerCase or camel Case. I should get that value selected in comboBox.
As JAVA is case sensitive so comboBox case issue where command object was having value newtypename (lowerCase) and the list, that was populating comboBox have this name as NewTypeName (camelCase) is fixed with business logic.