#{field (_prefix ? _prefix + '.' : 'root.') + _name} %{ if(_value){ if(_type){ if(_type instanceof String) currentType = play.Play.classloader.loadClass(_type) else if(_type instanceof Class) currentType = _type } else{ currentType = _value?.getClass() } } else if(_type){ if(_type instanceof String) currentType = play.Play.classloader.loadClass(_type) else if(_type instanceof Class) currentType = _type } // Eval fields tags def fieldsHandler = [:] if(_body) { _body.setProperty('fieldsHandler', fieldsHandler); _body.toString(); // we skeep the real result ... } }%

#{list items: _value?.keySet(), as:'key'} #{crud.objectMapItem prefix:field.name, entityId:_id, entityField:_name, itemKey:key, itemValue:_value?.get(key), itemType:currentType /} #{/list}
#{/field}