One possible solution would be to define a special option value. Call it
"<<any>>" for the sake of argument. A translatable option label would also
be provided, say "Other" for en_US. If a UI sees this as one of the values,
it knows the options for that attribute are suggestions only. It would then
make allowance for custom input, say by displaying a text box with the
label near to the selection list if "Other" was selected. The UI would then
replace the special value with the user provided value before calling
AttributeDefinition.validate(). Would this meet your requirements?
John
>
> Re: [osgi-dev] [metatype] custom properties for OCD/AD?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/25/12 5:37 PM, John W Ross wrote:
> > Note that a bug has been opened to track this:
> > https://www.osgi.org/members/bugzilla/show_bug.cgi?id=2464.
>
> I'm not a member, so I cannot follow this bug report...
>
> - --
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>
> iQIcBAEBAgAGBQJQiWQ7AAoJEKF/mP2eHDc4qaQP/1ei4L6TbCKuD4Ou6xYXCpFK
> KaU2LkciIleshgQBlZtKESfSQOBje30XKjTFAYwZ8MIVcBRdU1kHvb1AdCfBejn9
> DFWdIFRZXvrOJVY2VqjQkzuUX54U9I9ACb7KqIK6KxMwOIokdp60CmrVyLiSKbmU
> gL5GMWlc3IBTVk0YzHCDmN+vIkjY90IxzvCZDjmEr4tmZXTOKo9zwmXGrXy7i4WK
> RnjWaY0J5KDdNvYanohhAz5Bg8ZGDLeZ3Gns3DSHHRbnZPI0190nFKwS10VX/GsB
> dVXkMTJkYhHPLQ9vLwSeuq2FBf/lt6zso71nMPILRKMV87sk3PA1iBobDxcxGMqV
> qoZ90lFPNDAihO8b6IGpxragNfzMuS3VQTNfOCmQXLcTiOQdGYxKknBetxcgP3n3
> BOKjAl4vkaEbkO/p9iQDe9ZPKoeG8WWsIM2ETPQRFEz1wrLIpw5ISCKSuP3aRB/y
> aR+10AgNde329r2kEyFJ4qHAl8jpdcgrS4S8bfr3CR1Bi5v2g1NN6PgQ25wsw3py
> SQLa55cc2o9fYRMvqKUzu5SFD/T3udfKJAxUk5s0hxmEuIFHxfKCfVxv9xqjOPED
> n6J9sll47v8sZQgeqmaMUwiTyth2GTyXyMgg5GanD8K0BOyKNjVPMuYmIjZ6gKs4
> jdEg5OsrqTPJxFGTWwFM
> =6aFq
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev