Re: [Wicket-user] Url for resource

2006-06-09 Thread Eelco Hillenius
> Is there simpler way to get the URL? Yep. Pre-regestering resources is not necesarry in trunk (2.0) and current 1.2 (to be released as 1.2.1... it's not in 1.2 yet), so this should do the trick: final CharSequence url = urlFor(new PackageResourceReference(Link.class, "testForm.swf")); > BTW,

[Wicket-user] Url for resource

2006-06-09 Thread jan_bar
Hi, I need Url for flash resource located at the same folder as the WebPage which references it. After strugling this code works for me. public class FlashPage extends WebPage { public FlashPage() { ResourceReference resourceReference = new ResourceReference(getClass(), "testForm.swf") { pr