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
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
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
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
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
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,
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
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