Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-555

Avoid accidential selections or enforce selection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.RELEASE
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      When using a selection to reference to some entities or enums it is often usefull to force the user to select actively to avoid accidential selection. In this case one often adds a dummy selection to a list like "<please select>" or similar.

      Perhaps you could add on option to the field reference/enum command to generate such a dummy entry on position 0 of the list to trigger the user to make a selection. In this case automatic validation will also be nice.

      I think the best place is inside the create() and createForm() controller methods, but a centralized approach could be to add an optional parameter to the find methods of the entity.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hra Harald R├Ątscher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: