-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/11/14 09:11, Veit Guna wrote:
> Anyone?
> 
> On 30. Oktober 2014 11:22:58 MEZ, Veit Guna <veit.g...@gmx.de>
> wrote:
>> Hi. I'm using Felix 4.2.1 with a bundle, that offers a
>> configuration using the configuration service offered by Felix. 
>> For this, I've created a metatype.xml with a field like this:
>> 
>> --cut here-- <metatype:MetaData 
>> xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.2.0"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:schemaLocation="http://www.osgi.org/xmlns/metatype/v1.2.0 
>> http://www.osgi.org/xmlns/metatype/v1.2.0/metatype.xsd"; 
>> localization="OSGI-INF/metatype/metatype"> ... <AD
>> id="company.username" type="String" default="Administrator" 
>> name="%company.username.name" 
>> description="%company.username.description" required="true"/> 
>> ... --cut here--
>> 
>> Basically the configuration works, but the required field isn't 
>> checked. If I leave it empty, it simply saves the configuration
>> without any complain. When I reopen the configuration, the field
>> is blank. Is that expected behavior?

Not entirely sure, but isn't the fact that you're specifying a default
value causing this behaviour? There's still an issue with specifying
empty default values, see
https://issues.apache.org/jira/browse/FELIX-4665.

>> Also I'm wondering, if max/min attributes aren't checked either?

IIRC this should work. What use case did you try?

- -- 
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

/My world is revolving around INAETICS and Amdatu/

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

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.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUeYQPAAoJEKF/mP2eHDc46BkQAOMFVhclaAyMijC1sTgADsaQ
BzawXOs/uPTWZix19BWIekknG+UzLfdRt6G3RdnHHT8SmI3o8RxjNQS0iGMZlAQI
Jl9Ps74trBFtn73oVPxWLyATs7X0gI6LvqVAUvGAOi4EjLspEzAY9iah90nFI2Kd
7BLc9Vx2fklW6L5beXk+sCOtIrbxfR1UoRNtqksyW0ToaVQ+T/ChMsmBBqsaIaRN
NFyOtraUe/7DHYHLINPQ5Sp7j/3d5j2II4CfvOB3G8rBfh0MBWasjjIv2FlRX28A
QtP9Nc4T8798WoyPDuzGppuD1wL50ahUG9m+LUVKf/y9cyccttoCMfA8PRpUecYH
GsO2S9VOEf+fxHi8fSnM4+QlPKhYSu8EoqQ//gc5MIuaB+WR5iDTME1khwcksUf/
TsmUKyvsTpB8CSWbbBLorU0Nvvf9wb1NXuuGlav5R7MggX9Q2LszEnX3ib0aCQUw
fQlhehikZNyyJLjataC1giU+lxtj5gdIz5NevmpzUNvxkuRgXwZNVJ31vRuYGxyb
lcXy5DbvjONE2sxFRkLHxfkZQHGida/ec3e1ck4/IohGP+2oilCk+xy2HRqJG6Q9
ro8Rd6SHsOvuJPTzF2YZakuK1zAxN4XouDMyIba7Jfrmb2muq3X3j7KiyLiMxggZ
F51B1zerF5KD1R2Uf65Y
=1P5c
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to