Why don't use an IDE. It gives you the method signature and even suggests fixes:
RequestCycle.get().urlFor(imageResource, null).toString(); On Mon, Dec 5, 2011 at 7:26 PM, John Toncart <[email protected]> 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 <[email protected]>: >>> >>> 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: [email protected] For >>> additional commands, e-mail: [email protected] >>> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
