I agree; Wicket and JQuery cannot substitute each other. My apologies if I was not clear enough.
Here is little history: Actually I was going through JQuery Ajax events and other basic tutorial and wanted to understand Wicket7's Ajax Event handling and HeaderItems - just to compare and learn how Wicket changes the final markup against the final markup using plain JQuery. At one point I was stuck as I was using wrong HeaderItem in Wicket to achieve same what I was doing with JQuery function in plain html to hide the link on click. Using one particular HeaderItem was not resulting in similar JavaScript function after markup which I had using plain JQuery function. That made me curious to know and compare final HTML markup side by side by using straight forward JQuery/JavaScript and then doing same thing with Wicket by setting different HeaderItems; to understand how setting different header effects the final Markup and know internals of Wicket HeaderItem from there. For example, what markup looks like when using JavaScriptContentHeaderItem (and when to use it), or how it would look when using OnLoadHeaderItem? And then comparing the final markup against plain HTML written with JQuery/Javascript function. Not much of use may be; but just wanted to get more insight of how Wicket HeaderItem and Ajax Events works; with comparing those against vanilla JQuery/JavaScript usage. I hope this explanation would help in understanding my original question. Thanks, -Mihir. On Fri, Sep 25, 2015 at 3:39 PM, Martin Grigorov <[email protected]> wrote: > Hi, > > What kind of examples/snippets do you have in mind? > Wicket cannot substitute jQuery, and vise versa. For better user experience > I'd recommend to use JavaScript (jQuery) when possible. > E.g. using AjaxLink when you can use plain JS for some interaction is > actually bad practice. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Sep 25, 2015 at 5:51 PM, Mihir Chhaya <[email protected]> > wrote: > > > Hello, > > > > I recently started digging little deeper into how Wicket 7 > > converts/generates markup when adding JS or CSS resources at the > > page/component level. > > And that gave me an idea of contributing to the wicket community by > showing > > code snippet (side-by-side) with pure JQuery and then how to achieve same > > with Wicket 7 (and resulting markup). > > > > I am not sure if there is already a place available for such or if > anybody > > is working and I could join the efforts. > > > > Any suggestions/recommendations? > > > > Thanks, > > -Mihir. > > >
