Code:java.lang.IllegalArgumentException: Map key 'group_id' has value [3] that is not of expected type [class java.lang.Integer], instead it is of type [java.lang.String]GroupFormAction.javaCode:<input name="group_id" value="flowScope.group_id" type="int"/>
what is wrong? i thought [3] was an integer.Code:@Override protected Object createFormObject(RequestContext context) throws Exception { final Integer groupId = context.getFlowScope().getInteger("group_id"); GroupCommand groupCommand = new GroupCommand(); if (groupId == null) return groupCommand; Group group = this.groupService.getGroupById(groupId); groupCommand.setId(groupId); groupCommand.setGroupname(group.getAuthority()); groupCommand.setActive(Boolean.valueOf(group.isActive())); return groupCommand; }


Reply With Quote