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") {
protected Resource newResource() {
return PackageResource.get(getScope(), getName(), getLocale(),
null/*style*/);
}
};
resourceReference.bind(getApplication());
final CharSequence url = RequestCycle.get().urlFor(resourceReference);
...
Is there simpler way to get the URL?
BTW, resourceParameters in urlFor(resourceReference, resourceParameters) are
ignored in
WebRequestCodingStrategy.encode(RequestCycle,ISharedResourceRequestTarget).
This is unfortunate, because the parameters can be used to pass data to the
Flash.
Thanks for your support, Jan
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user