grid with groups model does not support dynamic templates

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 7.0.5
    • Affects Version/s: 7.0.4
    • Component/s: Databind 2
    • Security Level: Jimmy
    • None

      BindRowRenderer does not handle dynamic template name correctly see attached example (grouping-dyn-template.zul) in a grouping grid

      this can be easily fixed changing the rows 40,41 in BindRowRenderer

      40: final String subtype = row instanceof Group?"group":row instanceof Groupfoot?"groupfoot":null;
      41: final Template tm = resolveTemplate(grid,row,data,index,size,"model",subtype);
      

      see attached patched file (BindRowRenderer.java)

      the workaround is to put this file into your application's classpath, or patch the zkbind.jar directly

            Assignee:
            ChunfuChang
            Reporter:
            cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: