Announcement Announcement Module
Collapse
No announcement yet.
@Annotations for allowedFields/disllowedFields Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Annotations for allowedFields/disllowedFields

    Hi.
    Sorry for my English.

    Maybe some people implemented annotations for allowedFields/disllowedFields in Spring MVC?

    I think it is a good idea

    Code:
    public class Project implements Serializable {
        @DisllowedField
        private long id;
        @AllowedField
        private String title;
        private String description;

  • #2
    In my opinion such annotations make no sense, as they should be rather defined on per-controller basis, not per-command (or per-entity). Different controllers may need different sets of allowed fields.

    Comment


    • #3
      Originally posted by macar View Post
      In my opinion such annotations make no sense, as they should be rather defined on per-controller basis, not per-command (or per-entity). Different controllers may need different sets of allowed fields.
      You right.
      Maybe you know how to set allowedFields/disllowedFields declaratively in xml file?

      Comment


      • #4
        Check EnhancedSimpleFormController. I know it supports XML-style configuration of editors, perhaps of allowed fields as well.

        Comment

        Working...
        X