Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4542

Basic type validation for different types of the Attribute Definitions (AD) within the metatype

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • webconsole-4.2.2
    • None
    • None
    • None

    Description

      The OSGi Compendium 4.3 $105.7.1 defines the following types for the AD elements

      • String
      • Long
      • Double
      • Float
      • Integer
      • Byte
      • Char
      • Boolean
      • Short
      • Password

      Currently all except boolean are rendered by the configuration tab in the web console as regular input fields (with type=text) with no further validation.
      For example it is possible to enter a string for an attribute with type "Long". There is no exception in the log but the value is not changed (because it had the wrong type).

      One option would be to switch to HTML5 which supports a lot more types OOTB (http://www.w3schools.com/tags/att_input_type.asp) or use a library like http://jqueryvalidation.org/documentation/.

      For all numeric types the minimum and maximum should be validated.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: