urlfor(new ResourceReferenceRequestHandler(ref)) -igor
On Mon, Dec 5, 2011 at 10:26 AM, John Toncart <john.tonc...@gmail.com> wrote: > PackageResourceReference resourceImg = new PackageResourceReference(name + > ".jpg"); > String urlString = RequestCycle.get().urlFor(imageResource).toString(); > > gives me error: > The method urlFor(IRequestHandler) in the type RequestCycle is not > applicable for the arguments (PackageResourceReference) > > which is exact problem I have :-( So exact question is: how to get url from > PackageResourceReference? "1.4 method" won't work anymore or I miss > somethink. > > > > Martin Grigorov wrote: >> >> >> org.apache.wicket.request.resource.PackageResourceReference.PackageResourceReference(String) >> >> >> 2011/12/5 John Toncart <john.tonc...@gmail.com>: >>> >>> Hi guys, >>> >>> with 1.4 I was doing: ResourceReference resourceImg = new >>> ResourceReference(name + ".jpg"); String urlString = >>> RequestCycle.get().urlFor(imageResource).toString(); >>> >>> Now with 1.5 I can't do this, not know where is problem. >>> >>> Does anyone know how to do this in 1.5 please? >>> >>> John >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For >>> additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org