Details

      Description

      If sorting is enabled for at least one field in the list type form-widget, we get Template Exception Stack trace in downloaded file, the same can also be verified at console.

      Here is the Error details:

      Error executing macro: renderFieldTitle
      required parameter: id is not specified.
      The problematic instruction:
      ----------
      ==> macro renderFieldTitle [on line 53, column 1 in component://widget/templates/csvFormMacroLibrary.ftl]
      in user-directive renderFieldTitle [on line 116, column 57 in component://widget/templates/csvFormMacroLibrary.ftl]
      in user-directive renderSortField [on line 1, column 1 in Fri May 11 12:33:29 IST 2012]
      ----------

      Java backtrace for programmers:
      ----------
      freemarker.template.TemplateException: Error executing macro: renderFieldTitle
      required parameter: id is not specified.
      at freemarker.core.Macro$Context.sanityCheck(Macro.java:211)

      1. ScoopReport-6.csv
        22 kB
        Ranjit Kumar Singh

        Activity

        Hide
        Ranjit Kumar Singh added a comment -

        Download file having error

        Show
        Ranjit Kumar Singh added a comment - Download file having error
        Hide
        Ranjit Kumar Singh added a comment -

        Here is the patch:

        Index: csvFormMacroLibrary.ftl
        ===================================================================
        — csvFormMacroLibrary.ftl (revision 1336603)
        +++ csvFormMacroLibrary.ftl (working copy)
        @@ -50,7 +50,7 @@
        <#macro renderHiddenField name value id event action></#macro>
        <#macro renderIgnoredField></#macro>

        -<#macro renderFieldTitle style title id fieldHelpText=""><@renderField title />,</#macro>
        +<#macro renderFieldTitle style title id="" fieldHelpText=""><@renderField title />,</#macro>
        <#macro renderSingleFormFieldTitle></#macro>

        <#macro renderFormOpen linkUrl formType targetWindow containerId containerStyle autocomplete name useRowSubmit></#macro>

        Show
        Ranjit Kumar Singh added a comment - Here is the patch: Index: csvFormMacroLibrary.ftl =================================================================== — csvFormMacroLibrary.ftl (revision 1336603) +++ csvFormMacroLibrary.ftl (working copy) @@ -50,7 +50,7 @@ <#macro renderHiddenField name value id event action></#macro> <#macro renderIgnoredField></#macro> -<#macro renderFieldTitle style title id fieldHelpText=""><@renderField title />,</#macro> +<#macro renderFieldTitle style title id="" fieldHelpText=""><@renderField title />,</#macro> <#macro renderSingleFormFieldTitle></#macro> <#macro renderFormOpen linkUrl formType targetWindow containerId containerStyle autocomplete name useRowSubmit></#macro>
        Hide
        Ranjit Kumar Singh added a comment -

        Reopening this issue, it was resolved by mistake

        Show
        Ranjit Kumar Singh added a comment - Reopening this issue, it was resolved by mistake
        Hide
        Jacques Le Roux added a comment -

        Thanks Ranjit,

        Fixed in
        trunk r1338570
        R12.04 r1338571
        R11.04 r1338572

        R10.04 was not concerned: no Id parameter there

        Ranjit, just a note: it's ok for this very simple fix, but normally you should follow best practices and attach your patch, please read carefully

        Show
        Jacques Le Roux added a comment - Thanks Ranjit, Fixed in trunk r1338570 R12.04 r1338571 R11.04 r1338572 R10.04 was not concerned: no Id parameter there Ranjit, just a note: it's ok for this very simple fix, but normally you should follow best practices and attach your patch, please read carefully
        Hide
        Ranjit Kumar Singh added a comment -

        Thanks Jacques, I will take care the best practices for the next time.

        Show
        Ranjit Kumar Singh added a comment - Thanks Jacques, I will take care the best practices for the next time.

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Ranjit Kumar Singh
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development