Try this:

container.getHeaderResponse().render(JavaScriptHeaderItem.forReference (
                new ResourceReference(FansTable.class, "fanspage.js")));



Am 29.01.2014 07:00, schrieb Heshani:
I'm migrating wicket from 1.4 to 6.13. Read that the ResourceReference class
has been removed in 1.5 version.
Does anyone know whether there is an equivalent to achieve the same
functionality?

 container.getHeaderResponse().renderJavascriptReference(
new ResourceReference(FansTable.class, "fanspage.js"));

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
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

Reply via email to