@RemoteMethod public void showPerson(Long id) { WebContext wctx = WebContextFactory.get(); ScriptSession session = wctx.getScriptSession(); Util util = new Util(session); Person p = dao.read(id); util.setValue("firstName", p.getFirstName()); util.setValue("lastName", p.getLastName()); util.setValue("birthDate", p.getBirthDate().toString()); util.setStyle("personData", "display", "block"); Effect effect = new Effect(session); effect.highlight("personData"); }