Gabriel Jijon created WICKET-4811:
-------------------------------------

             Summary: ResourceState getData in Modal not work 
                 Key: WICKET-4811
                 URL: https://issues.apache.org/jira/browse/WICKET-4811
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.21
         Environment: Windows 7 ultimate 32 bits, apache tomcat 7, core i5 4gb 
ram
            Reporter: Gabriel Jijon


I have a modal that is in front of another. In each of them there is a 
ResourceLink DynamicWebResource linked as follows:

            @Override
            protected ResourceState getResourceState() {
                return new ResourceState() {
                    @Override
                    public byte[] getData() {
                        return returnBytesFromJasperReport(Report.Type);
                    }

                    @Override
                    public String getContentType() {
                        return "application/pdf";
                    }
                };
            }

The problem is that the method is executed returnBytesFromJasperReport 2 times. 
This behavior only occurs in the second modal since the first run the same code 
(a different object) correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to