i will look at the code but i think we should always back to the default
image if the locale image doesn't exists.
johan
Gili wrote:
This isn't related to the resource patch I recently discussed.
There is a problem with the recent design we came up with for
application-scoped resources. At startup time, the application
initializer runs, and registers (for example) "screenshot.jpg" so
users can hit it outside the scope of the page.
Fine... now say users hit my homepage and this links to
"screenshot.jpg" but when they hit it Wicket appends the locale to the
URL so now they're hitting "screenshot_en_US.jpg" for example.
The problem is now if users try hitting "screenshot_en_US.jpg"
outside the scope of the page it'll still fail. I can't very well be
expected to register every possible locale combination can I? Is there
a way for me to ensure that my Page links to "screenshot.jpg" with no
locale appended so it will always be viewable outside the scope of the
page?
Currently my code reads:
ResourceLink screenshotLarge = new ResourceLink("screenshotLarge",
new PackageResourceReference(getApplication(),
Application.class, "large-screenshot.jpg"));
As you can see, I am not specifying a locale anywhere. Ideas?
Thanks,
Gili
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user