Problems displaying internationalized labels in widgets when the label is not available in the user's language.
--------------------------------------------------------------------------------------------------------------- Key: OFBIZ-1736 URL: https://issues.apache.org/jira/browse/OFBIZ-1736 Project: OFBiz Issue Type: Bug Components: framework Reporter: Jacopo Cappellato I still see some problems affecting the way localized labels are rendered after the recent refactoring. The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585007#action_12585007 ] Jacopo Cappellato commented on OFBIZ-1736: ------------------------------------------ Adrian's commit in rev. 643951 has fixed the issue, thanks. However I think there is still something wrong in the way *entity* labels are looked up and not found. For example, if you visit this page: https://localhost:8443/accounting/control/GlAccountNavigate the page takes a really long time to load: about 5 minutes before a timeout occurs, then the page is rendered without errors. The problem is that the entity GlAccount (that is looked up to provide the tree of accounts) has now, in its entity definition, the following attribute set: default-resource-name="ChartOfAccountsEntityLabels" but if the file is not available; but even if the file is available but in it there aren't entries for the user's locale, then we get the timeout. Any ideas/hints about this? > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586109#action_12586109 ] Jacopo Cappellato commented on OFBIZ-1736: ------------------------------------------ Looking at the logs, the following lines are printed over and over (until the timeout occurs), at intervals of (about) 10 seconds: [java] 2008-04-06 09:46:54,484 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.084s [java] 2008-04-06 09:46:54,499 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.173s [java] 2008-04-06 09:46:54,586 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.081s [java] 2008-04-06 09:46:54,592 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.089s [java] 2008-04-06 09:46:54,691 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (8) records in 0.088s [java] 2008-04-06 09:46:55,031 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (358) records in 0.429s [java] 2008-04-06 09:46:55,119 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (6) records in 0.082s [java] 2008-04-06 09:46:55,150 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (166) records in 0.115s I will try to figure out what is happening, but if someone with a better knowledge of this part of the framework has any ideas about this, please help! > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586109#action_12586109 ] jacopoc edited comment on OFBIZ-1736 at 4/6/08 12:54 AM: ------------------------------------------------------------------- Looking at the logs, the following lines are printed over and over (19 times), at intervals of (about) 10 seconds: [java] 2008-04-06 09:46:54,484 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.084s [java] 2008-04-06 09:46:54,499 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.173s [java] 2008-04-06 09:46:54,586 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.081s [java] 2008-04-06 09:46:54,592 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.089s [java] 2008-04-06 09:46:54,691 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (8) records in 0.088s [java] 2008-04-06 09:46:55,031 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (358) records in 0.429s [java] 2008-04-06 09:46:55,119 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (6) records in 0.082s [java] 2008-04-06 09:46:55,150 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (166) records in 0.115s I will try to figure out what is happening, but if someone with a better knowledge of this part of the framework has any ideas about this, please help! was (Author: jacopoc): Looking at the logs, the following lines are printed over and over (until the timeout occurs), at intervals of (about) 10 seconds: [java] 2008-04-06 09:46:54,484 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.084s [java] 2008-04-06 09:46:54,499 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.173s [java] 2008-04-06 09:46:54,586 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.081s [java] 2008-04-06 09:46:54,592 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (4) request/event handlers in 0.089s [java] 2008-04-06 09:46:54,691 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (8) records in 0.088s [java] 2008-04-06 09:46:55,031 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (358) records in 0.429s [java] 2008-04-06 09:46:55,119 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (6) records in 0.082s [java] 2008-04-06 09:46:55,150 (http-0.0.0.0-8443-Processor1) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (166) records in 0.115s I will try to figure out what is happening, but if someone with a better knowledge of this part of the framework has any ideas about this, please help! > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586113#action_12586113 ] Jacopo Cappellato commented on OFBIZ-1736: ------------------------------------------ Please, ignore my last comment... that is not relevant for the error reported in this issue. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacopo Cappellato closed OFBIZ-1736. ------------------------------------ Resolution: Fixed > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586143#action_12586143 ] Adrian Crum commented on OFBIZ-1736: ------------------------------------ Jacopo, I clicked on the link you provided and the page comes up immediately. It would be helpful to know if anyone else is experiencing this problem. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586144#action_12586144 ] jacopoc edited comment on OFBIZ-1736 at 4/6/08 9:06 AM: ------------------------------------------------------------------ Just create the file and put in it a bunch of labels, but not for the "en" locale; then visit the link again using the "en" locale... the page will be very slow to load. was (Author: jacopoc): Just create the file and put in it a bunch of labels, but not for the "en" locale; then visit the link again using the "en" local... the page will be very slow to load. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586144#action_12586144 ] Jacopo Cappellato commented on OFBIZ-1736: ------------------------------------------ Just create the file and put in it a bunch of labels, but not for the "en" locale; then visit the link again using the "en" local... the page will be very slow to load. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586152#action_12586152 ] Adrian Crum commented on OFBIZ-1736: ------------------------------------ Jacopo, I looked at this and it appears the entity engine keeps trying to look up entity field translations using properties files that don't exist. I'll work on it further and try to get a fix submitted. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586158#action_12586158 ] Adrian Crum commented on OFBIZ-1736: ------------------------------------ Fixed, rev 645278. > Problems displaying internationalized labels in widgets when the label is not available in the user's language. > --------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1736 > URL: https://issues.apache.org/jira/browse/OFBIZ-1736 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Jacopo Cappellato > > I still see some problems affecting the way localized labels are rendered after the recent refactoring. > The problem is that, if the label is missing, the framework should always return the label id, so that it is rendered on the screen. > Right now this is not true (at least for the labels in screen widgets and menu widgets); for an example have a look at this screen: > https://localhost:8443/accounting/control/GlAccountNrPaymentMethod?organizationPartyId=Company > You will notice that thetitles for the two screenlets are empty and that there is also an empty menu item. > Any idea of how we could fix this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |