[opencms-dev] Selectorwidget don't change language
Carl Alex Friis Nielsen
cfn at kb.dk
Tue Oct 24 12:15:16 CEST 2006
-----Original Message-----
From: opencms-dev-bounces at opencms.org@KB On Behalf Of "manuela cirronis"
<manuela.cirronis at gruppoatlantis.com>
> when you edit some content and you change from one language to another one
> the simple element for example of type OpenCmsString loads the correspondent
> default value in the right language (using the right key in the
> workplace.properties)
> while the values of the element of type Selectorwidget are independent from
> the
> language chosen and the value into the combo box are always the same
Are you sure you are refering to strings of the resource bundle
when setting up the widget in the xsd file rather than using
constant values in the schema ?
This is an example refering to strings from a resource bundle
<xsd:annotation>
<xsd:appinfo>
<resourcebundle name="resourcebundlename"/>
<preview uri="${previewtempfile}" />
<mappings>
</mappings>
<layouts>
<layout element="Priority" widget="SelectorWidget" configuration="6:${key.priority.maximum}|5:${key.priority.veryhigh}|4:${key.priority.high}|3*:${key.priority.standard}|2:${key.priority.low}|1:${key.priority.verylow}|0:${key.priority.minimum}" />
</layouts>
<validationrules/>
<defaults>
</defaults>
</xsd:appinfo>
</xsd:annotation>
If you are using references to the resource bundle and that
isn't working you should report it as a bug.
Cheers,
Carl
More information about the opencms-dev
mailing list