You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Patrick Davids (JIRA)" <ji...@apache.org> on 2016/07/05 08:08:11 UTC
[jira] [Created] (WICKET-6195) ResourceMapper /
ImageResourceReferences not working as expected
Patrick Davids created WICKET-6195:
--------------------------------------
Summary: ResourceMapper / ImageResourceReferences not working as expected
Key: WICKET-6195
URL: https://issues.apache.org/jira/browse/WICKET-6195
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 6.22.0
Reporter: Patrick Davids
Attachments: imgres.zip
Hi,
as discussed in
https://www.mail-archive.com/users@wicket.apache.org/msg89246.html
It seems the ResourceMapper is not working as expected by tutorial:
http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
??The override of #equals() is the second requirement needed by ResourceMapper to fully recognize the mapped resource.??
\\
_equals()_ is never called by wicket and _getResource()_ is always called, returning a new instance.
This is why I loose my lastModified information and always gets HTTP 200.
When having a static instance of image resource in the image resource reference; always returning the same instance when getResource() is called it is working (get HTTP 304).
See quickstart attached...
kind regards
Patrick
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)