actually, request handler has: public final CharSequence urlFor(ResourceReference reference, PageParameters params)
-igor On Mon, Dec 5, 2011 at 10:29 AM, Igor Vaynberg <[email protected]> wrote: > urlfor(new ResourceReferenceRequestHandler(ref)) > > -igor > > On Mon, Dec 5, 2011 at 10:26 AM, 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] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
