Two points:

1) If all resources are packaged and we use Wicket's package-relative resource linking can we now map /* without this kind of problem occuring?

2) With the introduction of StaticResource, couldn't we now finally fix this issue even for non package-relative resources? That is, if an incoming request comes in that resolves to no bound resource, we can try generating a StaticResource with that path and see if it succeeds. The downside, if I understand correctly, is that Wicket will be handling these calls, not Tomcat -- as such all Tomcat-side configuration is ignored (i.e. default headers for image mime types, etc). Still, this is better than nothing.

Gili

SourceForge.net wrote:
Bugs item #1213229, was opened at 2005-06-01 23:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1213229&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.0.0-rc3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jess Sightler (jsight)
Assigned to: Nobody/Anonymous (nobody)
Summary: Image doesn't like webapps with urlpattern set to /*

Initial Comment:
Had a web.xml like this:
<web-app>
    <display-name>Health Track Application</display-name>
    <servlet>
        <servlet-name>HealthTrackApplication</servlet-name>
<servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
          <param-name>applicationClassName</param-name>
<param-value>com.sightler.healthtrack.wicket.HealthTrackApplication</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>HealthTrackApplication</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
</web-app>

Deployed to Jetty-5.1.3, and found that image
references would not work:
new Image("image1");
<img wicket:id="image1" src="image.png" />

But changing the url-pattern to /app/* worked fine!


----------------------------------------------------------------------

You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1213229&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to