[jira] [Created] (OFBIZ-4741) Error in Find Content Lookup

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

[jira] [Created] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
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
            Priority: Minor


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 | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp closed OFBIZ-4741.
----------------------------------

       Resolution: Not A Problem
    Fix Version/s: SVN trunk
         Assignee: Sascha Rodekamp

Hi Tom,
seems that the lookup works again, i'm able to select a locale string in the trunk when searching for content.

Thanks for reporting.
Sascha

               

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Sascha,

Something is wrong here. I just took a look at demo-trunk and the icon for locale lookup is missing. The function is not working on my local machine which has a fairly recent load from the trunk. See the screen shot from my local machine. Looking for English - clicked find and nothing. Also shot from trunk showing missing locale icon.

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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Burns updated OFBIZ-4741:
-----------------------------

    Attachment: Content Missing Locale Lookup.jpg
                Content With Locale Lookup on localhost.jpg
   

> 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Ankit Jain commented on OFBIZ-4741:
-----------------------------------

Tom,

Which firefox version you are using ?? The lookup icon is visible at my end. Yes the find(search) is not working properly.

Previously I had some problems ff 12.0 but after updated it to 13.0, its working fine now.
               

> 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4741:
----------------------------------------

Hi Ankit, Hi Tom
my button is also displaied (FF13, IE8).
But you are right the filtering doesn't work. The GetLocaleList.groovy calls every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code}

and gets the full locale list (and not a filtered one).
               

> 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 | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp edited comment on OFBIZ-4741 at 6/18/12 1:16 PM:
-----------------------------------------------------------------

Hi Ankit, Hi Tom
my button is also visible (FF13, IE8).
But you are right the filtering doesn't work. The GetLocaleList.groovy calls every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code}

and gets the full locale list (and not a filtered one).
               
      was (Author: sascha):
    Hi Ankit, Hi Tom
my button is also displaied (FF13, IE8).
But you are right the filtering doesn't work. The GetLocaleList.groovy calls every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code}

and gets the full locale list (and not a filtered one).
                 

> 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

The problem is with FF 13.0.1 Mozilla Firefox Yahoo! Edition
I do see it on my local machine with FF 13.0.1
It is also visible to me in IE 9.0.7
Likely something with the Yahoo! Edition

 
               

> 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ 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 | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4741) Error in Find Content Lookup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4741:
----------------------------------------

Hi Tom,
yes good point. The Locale lookup form seems useless.
We should discuss in the ML if we should rollback.


               

> 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