Easyui ComboBox multiple selection and possible problems no result find for Action XXXX and result input solution
When I encountered a problem, it was such a scenario:
The original requirement is to select the corresponding value of a property from a drop-down list. Only one choice is supported. In this case, the drop-down value corresponds to the ID number of an associated table, which is received in the background using the int type.
As mentioned in the new requirement, this pull-down method requires multiple selections. Because ComboBox of easyui has the multiple attribute (whether multiple selections are allowed), ComboBox is used for the selection.
The problem arises. After the multiple attribute of ComboBox is set to true, multiple choices can be implemented on the page. Then, the problem arises. when the operation is saved, no result find for Action XXXX and result input. After troubleshooting, it is found that the passed values are strings separated by commas (,), for example, "1, 2, 3 ", however, the backend still uses the int type to receive the value transmitted here, So struts gives this exception. Int type objects cannot receive values similar to ", 3, the internal problem is actually a simple type conversion error. Lying in the slot, I instantly found myself making a low-level mistake...
Solution: Use the string type in the background to receive multiple selected values, and change the value accordingly.
Easyui combox multiple selections and possible problems no result find for Action XXXX and result Input