Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2555

grid with groups model does not support dynamic templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.5
    • 7.0.4
    • Databind 2
    • Security Level: Jimmy

      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

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

              Created:
              Updated:
              Resolved: