Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-14 Thread Martin Grigorov
Hi, On Sun, Apr 13, 2014 at 7:44 PM, Sven Meier s...@meiers.net wrote: If the hierarchy is correct then the 1.4 logic is very confusing to me. Same way here ;). You know that Wicket 1.4 is no longer actively developed, so we won't improve this, even if it is a bug. I've read this thread

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-13 Thread Sven Meier
If the hierarchy is correct then the 1.4 logic is very confusing to me. Same way here ;). You know that Wicket 1.4 is no longer actively developed, so we won't improve this, even if it is a bug. Regards Sven On 04/11/2014 11:07 PM, Craig L wrote: Hi Sven, just a follow-up. If I am

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-11 Thread Sven Meier
Hi, there's indeed a special handling for Borders in Wicket 1.4.x, see Form#internalUpdateFormComponentModels(). Check whether you have followed the instructions in Border's javadoc in regards to bodyContainer. Regards Sven On 04/10/2014 05:23 PM, Craig L wrote: Hi Sven, Thank you for

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-11 Thread Craig L
Hello again, Indeed I wasn't adding my Panel to the border's body container so I made that adjustment. was this.getBorder().add(new GenericFormPanel(panel, parameters)); now this.getBorder().getBodyContainer().add(new GenericFormPanel(panel, parameters)); So now my Wicket 101 question...with my

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-11 Thread Craig L
Hi Sven, just a follow-up. If I am reading the debugger correctly I believe everything is layered correctly without adding the form directly to the border.bodycontainer. I stopped the debugger at the first instance of visitComponentsPostOrder in Form.class internalUpdateFormComponentModels()

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-10 Thread Craig L
Hi Sven, Thank you for your reply. Sorry for the slow response. Got dragged into a different issue. Hopefully these are the stack traces you asked for on the double setObject call. First time through setObject for a Text Field change -- View this message in context:

Form component's model#setObject getting called twice per submit when inside a Border

2014-04-07 Thread Craig L
Hello, This is my first post to the forum and I am brand new to the wicket framework so please be patient. I am coming into an organization that is still using version 1.4.22. I know it is horribly old but we just can't upgrade right now. Here is a brief overview of my layout: MyNewPage which

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-07 Thread Sven Meier
Hi Craig, the stacktraces to both #setobject() calls would be helpful. http://pastebin.com/ Sven On 04/07/2014 05:37 PM, Craig L wrote: Hello, This is my first post to the forum and I am brand new to the wicket framework so please be patient. I am coming into an organization that is still