Hi, for a "gentle" introduction to JavaScript integration you can also refer to the official guide:
http://wicket.apache.org/guide/guide/single.html#jsintegration > I just delving in these libraries > > > On Wed, Feb 19, 2014 at 11:51 AM, Farrukh SATTOROV <[email protected]>wrote: > >> Thank you, Martin >> >> >> On Wed, Feb 19, 2014 at 11:42 AM, Martin Grigorov >> <[email protected]>wrote: >> >>> Hi, >>> >>> Usually the steps to integrate any JS widget with Wicket are: >>> 1) create a custom Component or Behavior that will contribute the .js (and >>> any .css, images, ... if needed) in #renderHead() >>> 2) if the JS widget needs configuration (e.g. some JSON object passed to >>> the widget's constructor) then use again #renderHead() to write it to the >>> response >>> 3) if the JS widget provides functionality to send data back to the server >>> then use either Ajax Behavior, IResourceListener or mounted resource >>> >>> I recommend you to check the source of some integrations: >>> - https://github.com/sebfz1/wicket-jquery-ui >>> - https://github.com/l0rdn1kk0n/wicket-bootstrap >>> >>> Martin Grigorov >>> Wicket Training and Consulting >>> >>> >>> On Wed, Feb 19, 2014 at 8:45 AM, Farrukh SATTOROV <[email protected] >>>> wrote: >>>> Hi all, is there any recipes how integrate 3rd party javascript >>> component >>>> to wicket component. For example i have Timeline js class and i need to >>>> bind it to WebComponent as container, what steps i need to do. >>>> >>>> -- >>>> Regards, Farrukh >>>> >> >> >> -- >> Regards, Farrukh >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
