See https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution and the next paragraph
On Wed, Apr 11, 2012 at 11:34 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: > Hi, > > > I would like to use some visural wicket components so I need to initialize > JQuery first. > I'm wondering how to initialize it in wicket 1.5. > The example shown below does not work in 1.5. > Thank you in advance! > > > Regards., Sandor > > -------------- > > package com.myapp.wicket; > > import com.jquery.JQueryResourceReference; > import org.apache.wicket.markup.html.JavascriptPackageResource; > import org.apache.wicket.protocol.http.WebApplication; > > public class Application extends WebApplication { > > public Application() { > > addRenderHeadListener(JavascriptPackageResource.getHeaderContribution(new > JQueryResourceReference())); > } > > public Class getHomePage() { > return HomePage.class; > } > } > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/JQuery-and-Wicket-1-5-question-tp4549988p4549988.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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org