Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14233

Add a validator widget type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 11.2
    • Component/s: Layouts & Widgets

      Description

      There is currently no model to define a JSF validator with properties on the layout system.

      It could be interesting to add a widget types just for this use case because:

      • it can be easy to understand that adding specific validation can be done by dropping a widget in the layout (from Studio)
      • validator properties can be merged with the widget properties (hence no need to modify or improve the layout model for this)
      • widget type can handle retrieval of the component(s) to validate, hiding the current complexity of widget templates currently performing that kind of validation

      Use cases:

      • perform cross validation on a layout
      • add validation to a widget that cannot accept a validator as property (like select2 widgets and other widget templates: the validation method cannot be passed as a property as it needs to be a method expression and not a value expression)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: