Martin, mea culpa, I overlook PageParams in urlFor(). Thanks for your
hint.
Martin Grigorov wrote:
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 <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