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,

WicketTester CDI and WicketApplication

2013-06-01 Thread David Beer
Hi All I am having difficulty finding information on how I can create a CDI context for use in my tests. Is there some kind of way of creating a mock cdi environment for testing. Currently my tests fail trying to retrieve the CDI Bean Manager as this is normally controlled by the Web

Re: WicketTester CDI and WicketApplication

2013-06-01 Thread Cedric Gatay
Hi, I usually use Arquillian to deploy a CDI context in my tests which require injection to work (often it happens for pages tests). When testing individual components it is easy to manually inject references (either via package visibility or via PowerMock's Whitebox for instance). Regards, __

Re: WicketTester CDI and WicketApplication

2013-06-01 Thread David Beer
Hi Cedric Thanks for the reply I will take a look at Arquillian and see how I can use it. Any guides are helpful especially when used with wicket. Thanks David On 01/06/13 16:20, Cedric Gatay wrote: Hi, I usually use Arquillian to deploy a CDI context in my tests which require injection to

A child with id 'XXXX' already exist AND class constructor called twice issue

2013-06-01 Thread rpalacios
Hi everyone. I am a little new on Wicket, and I have googling this problem a lot of time. I have 3 or 4h try to solve this exception: java.lang.IllegalArgumentException: A child with id 'eventos' already exists But as you can see on code below, I am adding just a ListView component. I ran this

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