URLResourceStream loads target content twice.
---------------------------------------------

                 Key: WICKET-3176
                 URL: https://issues.apache.org/jira/browse/WICKET-3176
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4.12
         Environment: Jetty 7.2, Wicket 1.4.12, Eclipse 3.6
            Reporter: Yuen Kaayan


In PageA.class, there is an 'Include' component that tries to load 
http://localhost:8080/page-b.
In PageB.class, which is mounted as 'page-b', will print some dummy letters 
when class is initialized.

When web server is requested to load PageA, server console will print the dummy 
letters twice. That is, one request will print 2 lines of dummy letters.

I traced into Include.class, it uses URLResourceStream.class to load the URL. 
After reading the source, I found this URLResourceStream.class requested the 
URL twice: 1st in the constructor, 2nd in getInputStream().

Can this be amended to request once to save some bandwith/server time?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to