]> source.dussan.org Git - gitblit.git/commitdiff
fix last broken panel
authorMartin Spielmann <martin.spielmann@pingunaut.com>
Sat, 30 Jul 2016 11:44:42 +0000 (13:44 +0200)
committerMartin Spielmann <martin.spielmann@pingunaut.com>
Sat, 30 Jul 2016 11:44:42 +0000 (13:44 +0200)
src/main/java/com/gitblit/wicket/panels/ObjectContainer.java

index 63f7b2103316038f8b7b4cf89425546f38f20839..02aada593129d0f02c839aeaabef5bd9fbfe8f89 100644 (file)
@@ -29,7 +29,7 @@ import org.apache.wicket.protocol.http.ClientProperties;
 import org.apache.wicket.protocol.http.WebSession;\r
 import org.apache.wicket.protocol.http.request.WebClientInfo;\r
 import org.apache.wicket.request.Response;\r
-import org.apache.wicket.request.cycle.RequestCycle;\r
+import org.apache.wicket.request.resource.PackageResourceReference;\r
 import org.apache.wicket.util.value.IValueMap;\r
 \r
 /**\r
@@ -85,8 +85,8 @@ public abstract class ObjectContainer extends WebMarkupContainer {
                        parent = parent.getParent();\r
                }\r
                if (parent != null) {\r
-                       ResourceReference resRef = new ResourceReference(parent.getClass(), src, false);\r
-                       return (urlFor(resRef).toString());\r
+                       PackageResourceReference resRef = new PackageResourceReference(parent.getClass(), src);\r
+                       return (urlFor(resRef, getPage().getPageParameters()).toString());\r
                }\r
 \r
                return (src);\r