title: How I get the internal html content of a div tag using Apache Wicket
body: <p>In my html file I have a div tag like this,</p>
  
  <pre><code>&lt;div wicket:id="editorArea"&gt;Type Here&lt;/div&gt;
  </code></pre>
  
  <p>I am using a JavaScript library called <a href="http://mindmup.github.io/bootstrap-wysiwyg/" rel="nofollow">bootstrap-wysiwyg</a> to make this div tag a text are which we can type rich text. When the person types text, div tag's html content updates to represent the text content in html. I want to retrieve it in to the Java code of the html file in wicket. I tried to do it by creating reference variable to div tag like following,</p>
  
  <pre><code>WebMarkupContainer editorArea=new WebMarkupContainer("editorArea");
  String text=editorArea.getMarkup().toString(true)
  </code></pre>
  
  <p>But this don't give me the updated HTML content. I give only the initial html content. what is the problem here?</p>