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
- relates to
-
FELIX-3167 Add support for new PASSWORD attribute type
- Closed