Hi,

Am 24.10.2012 um 16:13 schrieb Jan Willem Janssen:

> Hi,
> 
> The default interfaces for OCD/AD provide just enough information to
> build a generic configuration editor for Metatype'd configurations.
> 
> However, on can think of use cases in which the editor needs
> additional 'hints' in order to provide a better user experience. For
> example, one could think of an attribute that provides the user a list
> of predefined options,

This already exists in the form of the option elements in the descriptor and 
the optionValues() and optionLabels() methods in the AttributeDefinition 
interface.

> *or* allows him/her to type another option (not
> in the list).

The option values are also used for validation of attributes and are currently 
defined to be decisive: If an attribute's value is not one of the listed ones 
it is invalid.

I could imagine, that it would make sense to have another option to indicate 
the options to be "proposals" rather than "a decisive list".

> 
> While it is certainly not an option to extend the MetaType spec with
> all kinds of fancy options for UI-builders, might it not be an idea to
> add a kind of "free-format" field to the OCD/AD for these kinds of
> situations?

I am not a big fan of "free-format" or "interpret as you like" stuff in a 
specification. Because this gives way to implementation dependencies which are 
hard to handle in a deployment case.

Regards
Felix

> 
> - -- 
> Met vriendelijke groeten | Kind regards
> 
> Jan Willem Janssen | Software Architect
> +31 631 765 814
> 
> /My world is:/
> 
> Luminis Technologies B.V.
> IJsselburcht 3
> 6825 BS  Arnhem
> +31 88 586 46 30
> 
> http://www.luminis-technologies.com
> http://www.luminis.eu
> 
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8169.78.566.B.01


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to