You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Gabriel Jijon (JIRA)" <ji...@apache.org> on 2012/10/09 23:16:03 UTC

[jira] [Created] (WICKET-4811) ResourceState getData in Modal not work

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

[jira] [Resolved] (WICKET-4811) ResourceState getData in Modal not work

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4811.
-------------------------------------

    Resolution: Won't Fix

Wicket 1.4.x is not maintained any more.
Please upgrade to 1.5.8 or 6.1.1.
                
> 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