Hi,
Yes, that was very good help ! But, as usual, everything did not work as
expected :'( This code :
XInterface xViewRoot =
(XInterface)xConfigProvider.createInstanceWithArguments(
"com.sun.star.configuration.ConfigurationAccess",
properties);
throws a WrappedTargetException with the following error code :
com.sun.star.lang.WrappedTargetException:
/org.mycomp.mypackage.Settings/URLs (and for locale fr) could not be
created. Unable to retrieve the node from the configuration server.
The backend returned the following error:
Layer merging: No data to merge with
My .xsd and .xcu files are now like this :
<oor:component-schema
oor:name="Settings"
oor:package="org.mycomp.mypackage"
xsi:schemaLocation="http://openoffice.org/2001/registry
component-schema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xml:lang='en-US'>
<oor:component>
<group oor:name="URLs">
<prop oor:name="dataPath" oor:type="oor:string">
<value />
</prop>
</group>
</oor:component>
</oor:component-schema>
<oor:component-data
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Settings"
oor:package="org.mycomp.mypackage">
<node oor:name="URLs">
<prop oor:name="dataPath">
<value>%config%/data/terminologie_fr_FR.dat</value>
</prop>
</node>
</oor:component-data>
I just cannot find a place with information about this. Does it ring
someone's bell ?
Thank you in advance !
Joerg Barfurth a écrit :
The code. But I have some comments on your XML as well. See inline
comments for more:
<snip>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]