form里加enctype="multipart/form-data" 后
@Before(BrandAdminValidator.class) public void save() { UploadFile file=getFile(); Brand brand = getModel(Brand.class,"brand"); Ret ret = srv.save(brand); renderJson(ret); }
由于@Before(BrandAdminValidator.class)先执行,在BrandAdminValidator里验证brand.name表单就获取不到数据了,如何解决?目前是只能注释@Before了
项目:JFinal
http://www.jfinal.com/doc/3-7