appfuse-light
  1. appfuse-light
  2. APPFUSE_LIGHT-1

server side validation doesn't work in appfuse-light-spring-hibernate-1.8.2 when adding a new user

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1

      Description

      server side validation doesn't work in appfuse-light-spring-hibernate-1.8.2
      You can reproduce the error when you deactivate javascript in your browser when
      submitting a new user.

      This patch worked for me:

          • UserFormController.java 2008-05-31 19:34:43.000000000 +0200
          • ../UserFormController.java 2008-05-31 19:31:18.000000000 +0200
            ***************
          • 4,9 ****
          • 4,10 ----
            import org.apache.commons.logging.LogFactory;
            import org.appfuse.model.User;
            import org.appfuse.service.UserManager;
            + import org.springframework.beans.factory.InitializingBean;
            import org.springframework.beans.factory.annotation.Autowired;
            import org.springframework.beans.factory.annotation.Qualifier;
            import org.springframework.beans.propertyeditors.CustomDateEditor;
            ***************
          • 24,30 ****

      @Controller
      @RequestMapping("/userform.*")
      ! public class UserFormController extends SimpleFormController {
      private final Log log = LogFactory.getLog(UserFormController.class);
      @Autowired
      UserManager userManager;
      — 25,31 ----

      @Controller
      @RequestMapping("/userform.*")
      ! public class UserFormController extends SimpleFormController implements
      InitializingBean {
      private final Log log = LogFactory.getLog(UserFormController.class);
      @Autowired
      UserManager userManager;
      ***************

          • 136,139 ****
          • 137,146 ----
            public String getText(String msgKey, Object[] args) { return getMessageSourceAccessor().getMessage(msgKey, args); }

            +
            + public void afterPropertiesSet() throws Exception

            Unknown macro: {+ if (validator != null) { + setValidator(validator); + }+ }

            }

        Activity

        ssteyaert created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1 94186

          People

          • Assignee:
            appfuse-light-issues
            Reporter:
            ssteyaert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: