[ 
https://issues.apache.org/jira/browse/OFBIZ-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396297#comment-13396297
 ] 

Tom Burns commented on OFBIZ-4741:
----------------------------------

Team:

Lookup Local fields are type <text-find/> which are generally used with the 
FindServices class. FindServices is designed to work with entity data. 

Lookup Local retrieves data from GetLocaleList.groovy which returns a List. In 
order to get the "Find" command to work there needs to be some feature like 
FindServices that can process a list.

There are very few forms using the LookupLocale form so unless someone has some 
other solution I do not see the value taking the time to write a class that can 
do FindServices on a list.

I think the code should be rolled back to present a drop-down list as in 
demo-stable.

One possible alternative would be to have a locals table. Locals on a server 
are not likely to change so it could be loaded one time and use FindServices to 
perform the lookup.

Tom

                
> Error in Find Content Lookup
> ----------------------------
>
>                 Key: OFBIZ-4741
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4741
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Tom Burns
>            Assignee: Sascha Rodekamp
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: Content Missing Locale Lookup.jpg, Content With Locale 
> Lookup on localhost.jpg
>
>
> To reproduce:
> In Content Manager select Content
> (https://demo-trunk.ofbiz.apache.org/content/control/findContent)
> Click Lookup Icon for Locale String
> Expected: Lookup Locale dialog
> Actual: Error message
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> [component://common/widget/CommonScreens.xml#LookupDecorator]: 
> java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
> java.util.Locale (java.util.LinkedHashMap cannot be cast to java.util.Locale)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to