@ExtDirectMethod(value = ExtDirectMethodType.FORM_POST_JSON)
public ExtDirectFormPostResult updateInfoJsonDirect(Locale locale, @RequestParam(
value = "p1", required = true) Long param1, @RequestParam(value = "p2",
required = true) String param2, @Valid FormInfo formInfo) {
ExtDirectFormPostResult e = new ExtDirectFormPostResult();
e.addResultProperty("name", formInfo.getName().toUpperCase());
e.addResultProperty("age", formInfo.getAge() + 10);
e.addResultProperty("admin", !formInfo.isAdmin());
BigDecimal bd = new BigDecimal("1000");
bd = bd.add(formInfo.getSalary());
e.addResultProperty("salary", bd);
e.addResultProperty("result", formInfo.getResult() + "RESULT");
return e;
}