Easyui combox multiple selections and possible problems no result find for Action XXXX and result Input

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.