One more thing,

when using MetaType for Pax-Web
I used the following [1], but as you can see I added all fields as String
since
the web-console doesn't handle it right if the field is non string and it
doesn't convert those appropriate for the Configuration-Admin

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-runtime/src/main/resources/OSGI-INF/metatype/metatype.xml


2013/10/2 Achim Nierbeck <bcanh...@googlemail.com>

> Well if you're using the Felix based WebConsole which is default for Karaf
> you'll need to use this.
> Though I'm not sure if it already does some validation for the input
> fields. It helps though for rendering.
>
> regards, Achim
>
>
> 2013/10/2 SvS <dumpacco...@solcon.nl>
>
>> Do you mean that it is necessary to specify and implement a specific AD
>> (Attribute Definition) type for the metatype service?
>>
>> For example:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <metatype:MetaData
>> xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0";>
>>   <OCD description=".....>
>>        <AD id="fileLocationUri" type="Uri" .../>
>>
>> ....
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Validation-of-input-Apache-Karaf-Web-Console-Configuration-tp4029805p4029809.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
> Commiter & Project Lead
> blog <http://notizblog.nierbeck.de/>
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to