{"comment":{"created_at":"2011-10-24T03:38:51Z","body":"Mirror, Lang, Castors 有比较详细的测试的\r\n但是，调整 Mirror 包，你就是调整 \r\n\r\n     Mirror.me(Type type)  \r\n\r\n对吧？ 如果那样的话，涉及的代码真的会很多的哦， 我们先想想，能不能来个\r\n\r\n    Mirror.fromType(Type type)\r\n\r\n同时保留\r\n\r\n    Mirror.me(Class<T> klass)\r\n\r\n这样，就比较兼容了\r\n\r\n还有\r\n\r\n    public void testAction(Book[] books){...}\r\n\r\n打算怎样支持? 也要声明 @Param 吗？\r\n\r\n\r\n\r\n","updated_at":"2011-10-24T03:38:51Z","url":"https://api.github.com/repos/nutzam/nutz/issues/comments/2499503","id":2499503,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e025c5d4283b3dc4f7a306ed2702d904?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e025c5d4283b3dc4f7a306ed2702d904","url":"https://api.github.com/users/zozoh","id":174909,"login":"zozoh"}},"action":"created","issue":{"number":30,"created_at":"2011-08-09T06:03:32Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"目前38已经支持了多级对象的收集，但是不支持字段为List的收集，如下面的例子：\r\n\r\npublic class Book {\r\n\tprivate Attachment cover;\r\n        private List<Attachment> covers = AutoArrayList<Attachment>();\r\n}\r\n\r\npublic class Attachment {\r\n        private String name;\r\n}\r\n\r\n再看action：\r\n\t@At\r\n\tpublic void save(@Param(\"::book.\") Book book) {\r\n\t\tbookManager.save(book);\r\n\t}\r\n\r\n\r\n最后看jsp：\r\n\r\n\r\n        <input name=\"book.cover.name\" type=\"text\" value=\"${obj.cover.name}\">\r\n\t<input name=\"book.covers[0].name\" type=\"text\" value=\"name1\">\r\n\t<input name=\"book.covers[1].name\" type=\"text\" value=\"name2\">\t\r\n\t<input name=\"subject_submit\" value=\"确定更新\" type=\"submit\">\r\n\r\n\r\n上述例子中，book对象中的cover是可以收集的，但是身为List的covers对象则无法收集，看了下ObjectNavlPairInjector.java，并没有针对List做特殊处理。\r\n\r\n这个功能在Struts中用得比较多，而且某些时候是相当的好用，强烈希望Nutz支持这种方式^_^","comments":11,"title":"表单收集不支持List字段","updated_at":"2011-10-24T03:38:51Z","url":"https://api.github.com/repos/nutzam/nutz/issues/30","id":1370322,"assignee":null,"milestone":{"number":7,"created_at":"2011-10-20T19:38:30Z","due_on":"2012-10-20T07:00:00Z","title":"1.b.41","creator":{"avatar_url":"https://secure.gravatar.com/avatar/e025c5d4283b3dc4f7a306ed2702d904?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e025c5d4283b3dc4f7a306ed2702d904","url":"https://api.github.com/users/zozoh","id":174909,"login":"zozoh"},"url":"https://api.github.com/repos/nutzam/nutz/milestones/7","open_issues":12,"closed_issues":0,"description":"另外一个 bug fix 版本 ","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/194511f19cf47441a1c2e8c23c9cf809?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"194511f19cf47441a1c2e8c23c9cf809","url":"https://api.github.com/users/fjay","id":958966,"login":"fjay"},"html_url":"https://github.com/nutzam/nutz/issues/30","labels":[{"name":"Mvc","url":"https://api.github.com/repos/nutzam/nutz/labels/Mvc","color":"e10c02"},{"name":"需求","url":"https://api.github.com/repos/nutzam/nutz/labels/%E9%9C%80%E6%B1%82","color":"FFFF88"}],"state":"open"},"legacy":{"issue_id":1370322,"comment_id":2499503}}