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

Renders.render causes infinite busy message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 6.0.5, 6.5.6
    • None
    • Windows 7 64bit, Firefox 29, Chrome 35, other browsers not tested

      I have a JSP page where I load following scripts in the header (because I need to call some zkau methods):

      <script type="text/javascript" src="zkau/web/js/zk.wpd" charset="UTF-8"></script>
      <script type="text/javascript" src="zkau/web/js/zk.zuml.wpd" charset="UTF-8"></script>

      In the body part I try to dynamically render zk components by calling Renders.render(...), e.g.:

      <body >
      <%
      Label lab = new Label("An example label.");
      StringWriter sw = new StringWriter();
      Renders.render(pageContext.getServletContext(), request, response, lab, null, sw);
      out.println(sw);
      %>
      </body>

      See attached file index.jsp for the complete page.

      Most of the times the page doesn't load but shows an infinite busy message (see attached screenshot). However, sometimes the page loads and the label is displayed as expected. It seems that it depends on the timing if the page loads or displays an infinite busy message. When I remove the two <script > elements, then the problem does not exist.

      Tested with zkee versions 6.0.5 and 6.5.6.

        1. context_test.jsp
          2 kB
        2. index.jsp
          0.9 kB
        3. MyMenupopup.java
          0.4 kB
        4. zk_render_test.PNG
          zk_render_test.PNG
          17 kB

            JerryChen JerryChen
            mpaula mpaula
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: