Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. central registry (like for dialogs)
    1. maps to mymodule/fieldTypes
    2. maps to my module/fieldValidators
  2. configuration
    1. in forms
      1. fieldType
      2. type -> String, Boolean
        1. should this be defined by the field type?
Example Configuration:
/module/mymodule
-- fieldTypes
---- text
------ name = <defaults to node name>
------ builder = info.magnolia.ui.form.config.TextFieldBuilder
------ definition = info.magnolia.ui.form.field.definition.TextFieldDefinition
  • naming of validator classes
  • option of a direct builder class (like for actions) 
  • definition naming
    • fieldType
  • mapping
    • builder (not impl which would be the field instance)
  • mymodule/fieldTypes
    • each module can register them
    • currently in ui-admincentral
  • short names for the field type
    • problem: n2b needs the class name to populate
    • idea: resolve class based on the fieldType registry?
  • Naming of dialogFieldRegistry and dialogFieldValidationRegistry