Hi,
On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao <shengchehs...@gmail.com>wrote: > Hello Martin > > My project wants to implement java code editor on web, so I need an > "lined-textarea" to show line number. First , I used Edit-Area > (http://www.cdolivet.com/editarea/) (Demo -> http://140.122.76.89), but > It just enable at first time, when I submit the form code-area > dissappeard. And then I tried Code-Mirror (http://codemirror.net/), the > same problem occurred. > > I don't know how to enable them in wicket application. > Do I have to re-compose the java script into wicket component, and how? > You have to integrate the JavaScript widget with Wicket. Usually this means: 1) the Wicket component should create the markup needed for the JS widget. In your case it seems that a <textarea> should be rendered 2) contribute all needed .js, .css and images needed by the JS widget (see Component#renderHead() and CssHeaderItem for example) 2.1) contribute the JS widget initialization options. Most JS plugins accept a JS object with the configuration 3) provide callback methods in your Wicket component/behavior which are called by the JS widget when needed, e.g. when the user submits the data Check https://github.com/sebfz1/wicket-jquery-ui project. It provides integration with all JQuery UI widgets and some additional ones. Use it as inspiration. You can also check https://github.com/andunslg/Wysiwyg-Wicket - this is an integration with yet another WYSIWYG JS widget for Wicket-JQuery-UI project. > > Thanks a lot > > On 2013/6/10 ?? 03:15, Martin Grigorov-4 [via Apache Wicket] wrote: > > Hi, > > > > What kind of problems you faced ? > > > > > > On Mon, Jun 10, 2013 at 8:51 AM, Shengche Hsiao <[hidden email] > > </user/SendEmail.jtp?type=node&node=4659310&i=0>> wrote: > > > > > Hello everyone > > > > > > I want to integrate ace editor into my wicket project, but after > > gooogled I > > > failed to do it. > > > Is anyone give my some advise? > > > > > > > > > > > > ----- > > > We do this not because it is easy. We do this because it is hard. > > > -- > > > View this message in context: > > > > > > http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307.html > > > Sent from the Users forum mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [hidden email] > > </user/SendEmail.jtp?type=node&node=4659310&i=1> > > > For additional commands, e-mail: [hidden email] > > </user/SendEmail.jtp?type=node&node=4659310&i=2> > > > > > > > > > > > > ------------------------------------------------------------------------ > > If you reply to this email, your message will be added to the > > discussion below: > > > http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659310.html > > > > To unsubscribe from Apache Wicket + Ace Editor, click here > > < > http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659307&code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA== > >. > > NAML > > < > http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > -- > > -----------------------------------------------------------------------> > We do this not because it is easy. We do this because it is hard. > -----------------------------------------------------------------------> > ShengChe Hsiao > -----------------------------------------------------------------------> > front...@gmail.com > front...@tc.edu.tw > -----------------------------------------------------------------------> > > > > > > ----- > We do this not because it is easy. We do this because it is hard. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659316.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 > >