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

Can not download files if <max-desktops-per-session> is set to 1 in zk.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.5
    • 6.5.4
    • Configuration
    • Security Level: Jimmy
    • None

      Cannot download files if <max-desktops-per-session> is set to 1 in zk.xml
      sample zul:
      <zk>
      <window apply="TestView">
      <button id="rtfBtn" label="rtf"></button>
      </window>
      </zk>

      sample TestView.java

      public class TestView extends SelectorComposer<Window> {

      @Listen("onClick=#rtfBtn")
      public void showReport() throws FileNotFoundException

      { File f = new File("c:/test/image005.jpg"); Filedownload.save(f, null); }

      }

      and click the "rtf" button to download file.

            jumperchen jumperchen
            francishsiao francishsiao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: