Re: Apache Wicket + Ace Editor

2013-06-10 Thread Martin Grigorov
Hi,

What kind of problems you faced ?


On Mon, Jun 10, 2013 at 8:51 AM, Shengche Hsiao front...@gmail.com 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
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?

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=nodenode=4659310i=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=nodenode=4659310i=1
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4659310i=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_codenode=4659307code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA==.
 NAML 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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



Re: Apache Wicket + Ace Editor

2013-06-10 Thread Martin Grigorov
Hi,


On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao shengchehs...@gmail.comwrote:

 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=nodenode=4659310i=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=nodenode=4659310i=1
   For additional commands, e-mail: [hidden email]
  /user/SendEmail.jtp?type=nodenode=4659310i=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_codenode=4659307code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA==
 .
  NAML
  
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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




Re: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
Hi Martin

Thanks for your help, I'll check it out!


On Mon, Jun 10, 2013 at 4:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 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=nodenode=4659310i=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=nodenode=4659310i=1
For additional commands, e-mail: [hidden email]
   /user/SendEmail.jtp?type=nodenode=4659310i=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_codenode=4659307code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA==
  .
   NAML
   
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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
 
 



Apache Wicket + Ace Editor

2013-06-09 Thread Shengche Hsiao
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org