You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2007/01/22 20:06:29 UTC

[jira] Created: (OFBIZ-642) Make OFBiz more dial-up friendly

Make OFBiz more dial-up friendly
--------------------------------

                 Key: OFBIZ-642
                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
             Project: Apache OFBiz (The Open for Business Project)
          Issue Type: Improvement
            Reporter: Adrian Crum
            Priority: Trivial


Reduce OFBiz's HTML output so that pages load faster on dial-up lines.

Three things can be done to achieve that goal:

1. Reduce HTML code through better use of styles (currently in progress).

2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.

3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.


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

        

[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wickersheimer Jeremy updated OFBIZ-642:
---------------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Missfire

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512480 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Adrian, Jeremy,

The "compress patch" (htmlwidget.patch) is in trunk rev.  555988
I got a couple of ConcurrentModificationException (whitout consequences) when loading back and front ends concurrently at start but anymore thereafter. I re-tried and did not reproduce.

Reviewing ant testing the ofbiz-642-locale_tz.patch...

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wickersheimer Jeremy updated OFBIZ-642:
---------------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Missed the header.ftl

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513528 ] 

Scott Gray commented on OFBIZ-642:
----------------------------------

Hi Erik

Did you restart OFBiz after changing the general.properties file?  The properties are cached permanently so you need to restart the server for them to have any effect.

Regards
Scott

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469437 ] 

Chris Howe commented on OFBIZ-642:
----------------------------------

Hey Jacques,

I had never noticed the locales.available in general.properties.  Thanks for pointing that out!

Is it possible for you  to update the Business Setup Guide with this information?   http://docs.ofbiz.org/x/EAM

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466604 ] 

Adrian Crum commented on OFBIZ-642:
-----------------------------------

Jonathon,

If you want to see how much markup is being produced by OFBiz, all you have to do is view the page source of any content-intensive OFBiz page.

It would help if you spent a little time understanding what Freemarker does, and the purpose of the <#compress> directive. It is NOT the same thing as HTML 1.1 gzip compression.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: htmlwidget.patch

Oops, forgot to delete test code before creating patch.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jonathon Wong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466608 ] 

Jonathon Wong commented on OFBIZ-642:
-------------------------------------

> If you want to see how much markup is being produced by OFBiz, all you have
> to do is view the page source of any content-intensive OFBiz page.

I didn't bother to do that, because my backend processes are taking way longer than the final HTML output to come through. Like I said, cost is amortized.

> It would help if you spent a little time understanding what Freemarker does,
> and the purpose of the <#compress> directive. It is NOT the same thing as
> HTML 1.1 gzip compression.

You mean at http://freemarker.sourceforge.net/docs/ref_directive_compress.html ?

Yes, I understand it strips away unnecessary whitespaces.

So the Freemarker engine has a smaller file to read in, but how much smaller? Will the difference be like bumping a 100KB FTL file down to 10KB? What's the difference in Freemarker engine's processing speed in processing a 100KB FTL compared to a 10KB one?

Suppose Freemarker engine isn't wildly burdened by unnecessary whitespaces in OFBiz's current FTLs (I could be wrong), any gzip compression will quickly and effectively "roll up" (tuck in small air-tight container) all the unnecessary whitespaces output to browsers. So, if your issue was to cater for dial-ups, the gzip compression is more than up to the task, with no extra work on our hands.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jonathon Wong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466603 ] 

Jonathon Wong commented on OFBIZ-642:
-------------------------------------

Is there a problem with dial-up lines? Exactly how big are the final HTML outputs from OFBiz? As I had suggested in the dev ML, any slowdown in HTML outputs due to size of outputs should be amortized by backend (JRE, database) costs. I'd suspect that backend processes take more time than it is to output HTML currently.

But I could be wrong. Your point 2 is worrying. There could be hundreds of UI labels in hundreds of languages sent out per HTML output.

Your point 3 should come as a stop-gap measure. As David mentioned, we can use Catalina's compression. Most, if not all, browsers today do support compressed formats for HTML outputs. We should note that using Catalina's (webserver's) compression will almost certainly wipe out any positive effect from the <#compress></#compress> directives, making those directives superfluous or extraneous.

Your point 1 isn't so much for faster HTML outputs (unless current non-use of styles is incredibly widespread and massive). It's more for better UI consistency and easier programmability. With more styles in use, a programmer can easily eyeball for a style already in use in HTML output, look at classname of style, and reuse that style. Currently, I also do a quick search of attributes in stylesheets to make sure I don't find what I need before I code my own style, until somebody comes up with comprehensive document of which styles should be used for what.

Your point 1, though seemingly trivial, is very important for the look-and-feel of OFBiz, an aspect often sorely and dangerously neglected by programmers (like me).

This issue seems bigger than you put it (as trivial).

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487066 ] 

Chris Howe commented on OFBIZ-642:
----------------------------------

Hey Adrian,

It looks good. Would the variable be better if it were parameters.compressHTML for the control?  That way it can be defined in the web.xml for universal webapp control, or overridden in the screen definition.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-642:
-------------------------------------

    Assignee: Jacques Le Roux

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wickersheimer Jeremy updated OFBIZ-642:
---------------------------------------

    Attachment:     (was: ofbiz-642-locale_tz.patch)

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487067 ] 

Adrian Crum commented on OFBIZ-642:
-----------------------------------

I pictured it being assigned in the Global Decorator for universal control.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507714 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Please Adrian,

What is the status of this issue ?

Thanks

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Oops, I missed a couple of Freemarker transforms in the last patch. Improved patch attached.

Jeremy - make sure you use the <@ofbizUrl> Freemarker transform when constructing component links.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: htmlwidget.patch

Improved patch. Now uses parameters.compressHTML.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: htmlwidget.patch

htmlwidget.patch addresses item #3 - reduce HTML output by eliminating unnecessary whitespace.

The feature can be enabled by setting the "compressHTML" context field to "true".

Example in screen widget:

<actions>
  <set field="compressHTML" value="true" global="true"/>
</actions>


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Oops, two new files were left out of last patch.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512513 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Just one remark : we can't anymore pre-select a language using its 1st letter. Could it be a solution for this with the new feature ?

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Updated ofbiz-642-locale_tz.patch against latest SVN.

Framework committers - could you please take a look at this patch? The concept was voted for in the dev ml a while ago, and this Jira issue has a couple of votes too. I'm pretty sure this is an improvement that everyone will appreciate.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "erik@cymbalfusion.com (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513524 ] 

erik@cymbalfusion.com commented on OFBIZ-642:
---------------------------------------------

Jacques,

I have a quick question for you if you don't mind.  I have changed the locales.available in general.properties and un-commented it....but it doesn't change anything.  I REALLY want to get rid of the majority of languages that are available in the dropdown list (ecommerce).  Google Analytics shows the languages as my top keywords : )

Thanks!
Erik (I have the drum store in Houston)

P.S.  Are you still too busy to take on small projects??  I could use some help getting my site finished.  


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512514 ] 

Adrian Crum commented on OFBIZ-642:
-----------------------------------

We could go back to using a drop-down list.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469353 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Just a remark about 

2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
    >Your point 2 is worrying. There could be hundreds of UI labels in hundreds of languages sent out per HTML output. 

There is a pragmatic turnaroud for this : just use languages you need in production. For that set locales.available in general properties. For instance in my demo server I use only languages really implemented in OFBiz  for now
    # -- locales made available separated by comma's
    locales.available=en,fr,de,it,nl,es,ja,zh

I beleive it's better to keep all the language OOTB to better demonstrate OFBiz scalling i18n possibilites.

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508154 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Thanks for comment Adrian,

About #3 : this is the patch above, isn't ? I will have a look at it when I will have a chance

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469473 ] 

Adrian Crum commented on OFBIZ-642:
-----------------------------------

It seems my suggestion wasn't clear enough and people are getting confused.

If you look at the markup that OFBiz outputs, at the start of the page there is a long list of languages to select from - if it was printed out it would take several pages. All of that markup is being sent out with every page request. I'm not suggesting that the language support be removed from OFBiz. I'm suggesting converting the language selection box to simple text that indicates the current language selected along with a link to change it. The link would provide a popup screen to select the language - similar to the lookup screens used elsewhere.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512520 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Yes, that's what I was thinking about : a large one

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507896 ] 

Adrian Crum commented on OFBIZ-642:
-----------------------------------

Jacques,

The status is:

#1 - Fairly complete. We have reduced HTML output by simplifying the layout and making better use of CSS styles.
#2 - Still needs to be done.
#3 - I found a way to make Freemarker compress all template output. Patch has been submitted, but not committed.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469510 ] 

Jacques Le Roux commented on OFBIZ-642:
---------------------------------------

Adrian,

I think I had well understood you. What I mean is that it's better to keep this OOTB behaviour. Because it shows to all possible prospective users that their languagues is there, and it shows it quickly in a "marketing" way (only have to throw a glance to the combo, no need to follow a link, come back, etc.). 

My suggestion is to use only languages really implemented in production site by specifying them with best practices, ie using locales.available in general.properties. In such case you will only have some HTM lines wich are not a big deal.

Keep in mind that people have often already experienced rich client UIs and they wait for the same (or aspire if you want) on the web (hence Ajax).

BTW I don't know if you have already dealed with multi-languages sites; but one big problem is currency and and even more prices (same currency but differents prices, like in EU for instance). Hence, often people use different stores for each language (a bit out of subject, ok ;o).

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-642.
---------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Adrian, Jeremy,

I applied and tested the ofbiz-642-locale_tz.patch. More than only reducing http traffic, IMHO it gives really a better user experience (larger place to see things)

In trunk rev. 555997

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wickersheimer Jeremy updated OFBIZ-642:
---------------------------------------

    Attachment: ofbiz-642-locale_tz.patch

There is a quick patch to replace the Timezone and Locale combobox by a separate page.
I did not bother to make it a popup or anything fancy.

And indeed this can reduce the HTML page size quite a bit if you have ALL languages / timezones available.

Note that the feature of changing the language or timezone is very seldom used so i guess i won't improve it (feel free to adapt the code to have a popup i you like)

Also note that it requires patching ALL the controllers, forgive me if i missed one. (ecommerce is not modified)

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-642) Make OFBiz more dial-up friendly

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-642:
------------------------------

    Attachment: ofbiz-642-locale_tz.patch

Improved patch.

Jeremy's patch was good, but there were a few problems with it. I corrected the problems and re-created the patch.

This patch depends on the patch in OFBIZ-1117.


> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: htmlwidget.patch, htmlwidget.patch, htmlwidget.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch, ofbiz-642-locale_tz.patch
>
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.