To further clarify, the behavior I'm expecting from Wicket is this:

1) Developer says ResourceLink("doggybag.exe");
2) User hits link
3) Wicket searches for doggybag<locale>.exe on server, if it exists, send it.
4) Wicket searches for doggybag.exe on server, if it exists, send it.

So, what I'm saying is that Wicket should only ever append the locale to the filename if such a file actually exists on the server. I hope that clarifies what I mean :) If you still don't understand, feel free to ask again and I will try further clarification.

Thanks,
Gili

Gili wrote:

I mean that if I have the file doggybag.exe on the server which I link to using ResourceLink, when the client clicks on the link in his browser, he gets a message about downloading doggybag_en_us.exe which is incorrect.

I am sending an install program of my application to end-users and I don't want the filename mangled in any way.

Gili

Juergen Donnerstag wrote:

Sorry, but I don't understand what you mean.

Juergen

On 5/30/05, Gili <[EMAIL PROTECTED]> wrote:

The problem isn't finding the file on the server end. The problem is
that even if it files a locale-less filename on the server-end, it still
sends appends to the locale on the client-end (HTML code).

      Is this a bug then?

Gili

Juergen Donnerstag wrote:

Without having taken a look into the source: ResourceLink tries to
load a resource with locale + style, locale, style and without
anything, it should work as long as the resource file does not have
the locale or style attached. I know there is a log4j setting for the
class to enable logging on which filenames are checked for existence.
Again, I didn't look into the source, I might be wrong.

Juergen

On 5/30/05, Gili <[EMAIL PROTECTED]> wrote:


Hi,

Is it possible to create a ResourceLink that never appends anything to
the filename like locale? I tried extending ResourceLink but it is
impossible to either override getLocale(), getStyle() to always return
null because they are final methods nor is it possible to override
getURL() because "resourceReference" is a private field.

If I *am* supposed to be subclassing ResourceLink, please consider
making resourceReference protected. Otherwise, I am open to your
suggestions.

Thank you,
Gili


-------------------------------------------------------
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=fad-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




-------------------------------------------------------
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=fad-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



-------------------------------------------------------
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