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

Rendering Problem with Template and ZK bind

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • 6.0.0, Freshly
    • Databind 2
    • None

      Problem description:

      When using ZK bind template to render group model. The exception show up:

      嚴重的: >>org.zkoss.zk.ui.UiException: Groupfoot must be placed after the last Row of the Group
      >>	at org.zkoss.zul.Rows.insertBefore(Rows.java:276)
      >>	at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:95)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:795)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:765)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:674)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.access$0(UiEngineImpl.java:658)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2150)
      >>	at org.zkoss.bind.impl.BindRowRenderer.render(BindRowRenderer.java:51)
      >>	at org.zkoss.zul.Grid$Renderer.render(Grid.java:980)
      >>	at org.zkoss.zul.Grid.doInitRenderer(Grid.java:899)
      >>	at org.zkoss.zul.Grid.onInitRender(Grid.java:858)
      >>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      >>	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      >>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      >>	at java.lang.reflect.Method.invoke(Unknown Source)
      >>	at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2721)
      >>	at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2651)
      >>	at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1696)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1481)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:457)
      >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:310)
      >>	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:214)
      >>	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:134)
      >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      >>	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      >>	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      >>	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      >>	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      >>	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      >>	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      >>	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      >>	at org.mortbay.jetty.Server.handle(Server.java:326)
      >>	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      >>	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
      >>	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      >>	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      >>	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      >>	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      >>	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      

      Please refer attachment for source file (*.java & customModel.zul).

      Reproducing Steps

      1. prepare a ZK project and copy *.java and *.zul the project
      2. visit customModel.zul and the above exception will occur.

            dennis dennis
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: