【发布时间】:2015-10-20 12:37:57
【问题描述】:
我正在开发一个尝试将参数传递给命令的 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 才能使简单的字符串参数正常工作?
【问题讨论】:
-
你得到了什么错误?
标签: parameters command e4