Package com.m4f.web.bind.form

Examples of com.m4f.web.bind.form.UserForm


  @RequestMapping(method=RequestMethod.GET)
  public String getForm(Model model, Locale locale,
      @RequestHeader(required=false, value="referer") String referer,
      HttpSession session) {
    try {
      UserForm form = new UserForm();
      form.setUser(this.serviceLocator.getUserService().createUser());
      model.addAttribute("form", form);
      model.addAttribute("mediations",
          this.serviceLocator.getMediatorService().getAllMediationService(locale));
      session.setAttribute(this.REFERER_PARAM, referer);
    } catch(Exception e) {
View Full Code Here


  public String edit(@PathVariable Long userId, Model model, Locale locale,
      @RequestHeader(required=false, value="referer") String referer,
      HttpSession session) {
    try {
      InternalUser user = this.serviceLocator.getUserService().getUser(userId);
      UserForm form = new UserForm();
      form.setUser(user);
      model.addAttribute("form", form);
      model.addAttribute("mediations",
          this.serviceLocator.getMediatorService().getAllMediationService(locale));
      session.setAttribute(this.REFERER_PARAM, referer);
    } catch(Exception e) {
View Full Code Here

TOP

Related Classes of com.m4f.web.bind.form.UserForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.