lookupField能实现下拉多选功能吗

我想实现下拉选项里一次可以选择多个选项、并且各个选项之间通过斜杠分割,请问题下这种功能能实现吗?

先看一下标签列表能不能满足需要:
https://doc.cuba-platform.cn/manual-7.1-chs/gui_TokenList.html

我试着用了一下tokenList,但报错了:

ClassCastException: class java.util.ArrayList cannot be cast to class com.company.edyj.entity.Dict (java.util.ArrayList is in module java.base of loader ‘bootstrap’; com.company.edyj.entity.Dict is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @73db4768)

这是什么原因?

参考示例操作一下

很可能是使用问题,看错误信息是出在把 ArrayList 转成 Dict 类。检查一下你的数据容器,加载器等配置是否正确。

tokenList 数据咋保存,保存的时候报错误,给个例子吗
image

image