Announcement Announcement Module
Collapse
No announcement yet.
controller code generation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • controller code generation

    Just an idea regarding controller code generation.
    Instead of having hard coded strings for the "next page" after an action, could we have this in a user defined area and reference the strings using a predefined method.

    For example

    if (result.hasErrors()) {
    model.addAttribute("pUser", pUser);
    addDateTimeFormatPatterns(model);
    return PUser.getCreateValidationErrorString();
    }

    in PUser.java

    String getCreateValidationErrorString() {
    return "puser/create";
    }

  • #2
    Would like that too.
    And field accessors for fields in aspects (for example
    GenericConversionService conversionService field in ROO_Controllers)

    Regards, D

    Comment

    Working...
    X