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

Renders.render causes infinite busy message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.5, 6.5.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Windows 7 64bit, Firefox 29, Chrome 35, other browsers not tested

      Description

      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.

        Attachments

        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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: