Display the List of available Locales from general.properties in a form drop-down

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Display the List of available Locales from general.properties in a form drop-down

Sanjeev Gupta
Hi
I'm trying to create a form that displays the list of available locates from general.properties in a form  a drop-down, however I keep getting the error
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.ClassCastException: Not a map (Not a map)

I've tried all permutation combination, even running the code as a service, but no luck.

Here's my Form code :-
<actions>
        <property-to-field field="values" resource="general.properties"  property="locales.available"/>               
        <service service-name="splitString" result-map="rmap" >
                <field-map field-name="inputString" value="${values}"/>
                <field-map field-name="delimiter" value=","/>
        </service>       
        <set field="listing" from-field="${rmap.outputList}" type="NewList"/>
</actions>       
        <field name="localeString">
            <drop-down >           
               <list-options key-name="listing" list-name="listing" />         
            </drop-down>
        </field>

Would appreciate any help with this..
Rgds
Sanjeev Gupta
www.digitalwebadvisors.com