Hi, Wicket 6 uses jQuery for its internals. As a consequence jQuery is available for the user code for free. But that's all. Wicket doesn't provide any APIs to write JavaScript/jQuery in Java. jQuery integration libraries like Wiquery provide such APIs. Take a look at their documentation (see JsStatement class).
On Wed, Feb 27, 2013 at 11:15 AM, lovetimi <xingfan_w...@live.cn> wrote: > who can show me some demos about how to write jquery in wicket 6.x, > > target.prependJavaScript("$('#" + btn.getMarkupId() > + "').css({'background':'blue'});"); > > > @Override > public void renderHead(IHeaderResponse response) { > // TODO Auto-generated method stub > super.renderHead(response); > > response.render(JavaScriptHeaderItem.forScript("alert('hello')", "jsjs")); > } > > but I think this is not very convenient, There are other ways to write > jqeury?? beacuse somebody tell me Apache Wicket 6 Released With Integrated > jQuery Support,,but i have no idea about it. > > THX... > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/how-to-use-wicket6-write-jquery-tp4656849.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 <http://jweekend.com/>