我正在开发一个试图将参数传递给命令的e4应用程序。我在应用程序模型中定义了参数,因此它们是字符串。我省略了参数的typeId。
Map<String, Object> parameter = new HashMap<String, Object>();
parameter.put("de.mdsd.e4.rap.kdn.joggathon.webeditor.commandparameter.username", username);
parameter.put("de.mdsd.e4.rap.kdn.joggathon.webeditor.commandparameter.password", password);
ParameterizedCommand cmd = commandService.createCommand("command.dologin", parameter );当我创建传递参数的命令时,我得到的结果是null,因为commandService没有为我的参数找到转换器。
我必须在参数中指定哪个typeId才能使简单的字符串参数正常工作?
发布于 2016-08-18 21:21:27
您的版本非常好,以防“用户名”和“密码”来自String类型。这个错误可能是在其他地方产生的。
https://stackoverflow.com/questions/33236887
复制相似问题