Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-10 Thread Martin Grigorov
Hi, On Mon, Jun 3, 2013 at 10:35 PM, Andun Sameera andun...@gmail.com wrote: Hi All, I have tried further with AjaxEditableLabel in following way to get the cotent of div tag. String value=Type.; AjaxEditableLabel ajaxEditableLabel=new

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-03 Thread Andun Sameera
Hi All, I have tried further with AjaxEditableLabel in following way to get the cotent of div tag. String value=Type.; AjaxEditableLabel ajaxEditableLabel=new AjaxEditableLabel(editorArea,new Model(value)){ @Override public void

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-02 Thread Andun Sameera
Hi All, Also cant we use AjaxEditableMultiLineLabel which is used in [1] for the task? Thanks! [1] - http://www.wicket-library.com/wicket-examples/ajax/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.ajax.builtin.EditableLabelPage

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-01 Thread Martin Grigorov
Hi, I guess you want to get the new entered text via Ajax submit. You can extend AjaxSubmitButton and implement #updateAjaxAttributes() { attributes.getDynamicExtraParameters().add(return [ {name: 'richText', value: $('#editorArea').html() } ]); } Then use

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-01 Thread Maxim Solodovnik
Hello Martin, Is it possible to create FormComponentPanel as in following example https://cwiki.apache.org/WICKET/creating-custom-formcomponentpanels-to-build-valid-objects-using-wickets-form-validation-logic.html but taking the value from the div.innerHtml and not the textfield? On Sat, Jun

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-01 Thread Martin Grigorov
Hi Maxim, It depends what is the markup you have to work with. Usually WYSIWYG widgets work with just a div or textarea and create other HTML elements dynamically with JavaScript to do their job, e.g. an iframe. Additionally they almost always give you API to get the produced rich content (html,

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-01 Thread Maxim Solodovnik
Hello Martin, Thanks for the reply Is it possible to wrap component into its own form and add some behavior which will trigger adding DynamicExtraParameters on upper form submit? I have added new AjaxFormSubmitBehavior(this, submit) to my component form but it is not triggered on upper form

How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-05-31 Thread Andun Sameera
Hi, In my html file I have a div tag like this, div wicket:id=editorAreaType Here/div I am using a JavaScript library called bootstrap-wysiwyg 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