I thought that wicket may have some class for this situation.... isnt true?

On Sat, Aug 29, 2009 at 10:45 PM, James Carman <jcar...@carmanconsulting.com
> wrote:

> have you tried java.net.URLDecoder?
>
> On Sat, Aug 29, 2009 at 3:43 PM, Fernando Wermus
> <fernando.wer...@gmail.com>wrote:
>
> > I am serving a file from disk which its name is "red apple.jpg".
> > From html source it renders as follows
> >
> > <img src="a/b/c/d/red apple.jpg" />
> >
> > I found that On method getUri() and a variable into requestParameters the
> > image name has been translated to red%20apple.jpg
> >
> > new URIRequestTargetUrlCodingStrategy("/" + "thumbnail") {
> >
> > @Override public IRequestTarget decode(RequestParameters
> requestParameters)
> > {
> >
> > try {
> >
> > return serveImage(getURI(requestParameters), ....);
> >
> > } catch (Exception e) {
> >
> > throw new WicketRuntimeException(e);
> >
> > }
> >
> > }
> >
> > };
> >
> >
> > Which is the best way to manage this situation?
> >
> >
> > Do I have just implement a method from my own converting %20 or there is
> a
> > wicket way to do this job?
> >
> >
> > I am using wicket 1.3.6
> >
> > thanks in advance
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Reply via email to