Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10772

OFBiz On a Diet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • Trunk
    • None
    • ALL COMPONENTS
    • None

    Description

      OFBiz is laden with superfluous redundancies and approaches for 'novice' developers, when it comes to handling labels (titles) for screens and fields in forms in both Freemarker templates and widgets.

      In screens we have defined elements such as: 

      <set field="titleProperty" value="ManufacturingCreateProductionRun"/>
      

      and

       

      <screenlet title="${uiLabelMap.PageTitleAddFeatureInterAction"}">
      

      Equally so we have defined elements in widget forms and templates, such as:

      ${uiLabelMap.FormFieldTitle_<WhatEverTheFieldNameIs>}
      

      or

      ${uiLabelMap.<ComponentName><VeryLenghtyExplanationAsLabelForAField>}
      

      This all has led to a situation where we have a product that, label-wise, overflown with exceptions on exceptions, and unnecessary 'explanations' - such as the 'componentName', or 'PageTitle' or 'FormFieldTitle_', in any of the files.

      Equally so, having to have the name of the component in the identifier of a label is unnecessary and reduces reuse. An 'Amount' label has the same meaning everywhere (given its context), so there is no need to have definitions like:

      • AccountingAmount
      • PaymentAmount
      • ProductAmount
      • OrderAmount
      • TermAmount
      • FormFieldTitle_amount
      • etc.

      Having done a quick assessment I get to over 90.000 unnecessary identifiers in our files that  hampers us in reusing labels as much as possible.

      We can save 100.000s of bytes in our product by removing these unnecessary 'novice' developer requirements, resulting in cost- and time-saving benefits for our adopters, their developers and our contributors.

      This is the umbrella ticket to capture related sub-tasks (tickets/sub-tasks).

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            mbrohl Michael Brohl
            pierresmits Pierre Smits
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: