Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3445 Layered lookup umbrella main task
  3. OFBIZ-3541

Using Widgets html form templates in FTL files

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Trunk
    • None
    • None

    Description

      The attached patch introduces a way to let developers to use the templates defined in htmlMacroFormLibrary.ftl in the FTL files.
      This was discussed in the mailing list and it seems that we all agree that having this feature could be a good thing.
      In the patch I used the renderLookupField in the main.ftl file of the catalog application. By doing this the two lookups that are included in this ftl are now rendered similar to how they are from a form widget.
      This allows the Tomahawk theme to render these lookups in the supposed way (with the card icon).

      Doing this I changed the macro in the htmlMacroFormLibrary.ftl to have all parameters with a default value so that only the relevant ones must be specified in the FTL.
      A new template.ftl file has been added but this only includes the htmlMacroFormLibrary.ftl. I do not know if there is a better way to have the macro available in the FTL file.

      Please fill free to comment any of the choise I did so that we could then commit this and extend to other macros.
      I guess the next one I will address is the renderNextPrev so that all paginations will look the same in all forms/FTL screens.

      Attachments

        1. widgetMacrosInFtlImprove.patch.diff
          14 kB
          Bilgin Ismet Ibryam
        2. widgetMacrosInFtl.patch
          6 kB
          Bruno Busco
        3. widgetMacrosInFtl.patch
          12 kB
          Bruno Busco
        4. widgetMacrosInFtl.patch
          15 kB
          Bilgin Ismet Ibryam
        5. OFBIZ-3541 Using Widgets html form templates in FTL files.patch
          57 kB
          Jacques Le Roux
        6. OFBIZ-3541 Using Widgets html form templates in FTL files.patch
          62 kB
          Jacques Le Roux
        7. OFBIZ-3541 Using Widgets html form templates in FTL files.patch
          61 kB
          Bilgin Ismet Ibryam
        8. OFBIZ-3541 Using Widgets html form templates in FTL files.patch
          81 kB
          Jacques Le Roux

        Activity

          People

            bruno.busco Bruno Busco
            bruno.busco Bruno Busco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: