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

Using Client MVVM and Server MVVM in the same ZUL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 10.0.0
    • 10.0.0-Beta
    • None
    • None

      Steps to Reproduce

      run the zul

      Current Result

      java.lang.ClassCastException: class org.zkoss.test.MyComposer cannot be cast to class org.zkoss.clientbind.ClientBindComposer (org.zkoss.test.MyComposer and org.zkoss.clientbind.ClientBindComposer are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @521d533a)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.lambda$processNode$8(HtmlTemplateRenders.java:713)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.lambda$processNode$9(HtmlTemplateRenders.java:692)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.processNode(HtmlTemplateRenders.java:691)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.processNode(HtmlTemplateRenders.java:674)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.processNode(HtmlTemplateRenders.java:674)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.processNode(HtmlTemplateRenders.java:756)
      at org.zkoss.clientbind.ui.sys.HtmlTemplateRenders.renderTemplate(HtmlTemplateRenders.java:99)
      at org.zkoss.clientbind.BinderPropertiesRenderer.lambda$collectTemplates$2(BinderPropertiesRenderer.java:297)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
      at org.zkoss.clientbind.BinderPropertiesRenderer.collectTemplates(BinderPropertiesRenderer.java:298)
      at org.zkoss.clientbind.BinderPropertiesRenderer.processComponentBindings(BinderPropertiesRenderer.java:220)
      at org.zkoss.clientbind.BinderPropertiesRenderer.renderProperties(BinderPropertiesRenderer.java:91)
      at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2201)
      at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:2288)
      at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2229)
      at org.zkoss.zk.ui.sys.HtmlPageRenders.outPageContent(HtmlPageRenders.java:684)
      at org.zkoss.zul.impl.PageRenderer.renderDesktop(PageRenderer.java:97)
      at org.zkoss.zul.impl.PageRenderer.render(PageRenderer.java:56)
      at org.zkoss.zk.ui.impl.PageImpl.redraw(PageImpl.java:948)
      at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:581)
      at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:376)
      at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:220)
      at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146)

      Expected Result

      no error, 2 listitems

        1. MyComposer.java
          0.1 kB
        2. zk-5575.zul
          0.7 kB

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: