Re: empty form input after submit

2016-08-09 Thread Iamuser
Hello, Could you please provide more details? What do you mean by swapping the model? Thank you. On Wed, Aug 3, 2016 at 8:16 PM, ganea iulia wrote: > Hello, > Could you please give me an example of that? > Thank you > > On Sun, Jul 31, 2016 at 3:08 PM, Sven Meier [via

Re: empty form input after submit

2016-08-03 Thread Iamuser
Hello, Could you please give me an example of that? Thank you On Sun, Jul 31, 2016 at 3:08 PM, Sven Meier [via Apache Wicket] < ml-node+s1842946n4675243...@n4.nabble.com> wrote: > Hi, > > Form2 is always working on the same model object. > > You have to swap its model object once you select one

Re: empty form input after submit

2016-07-31 Thread Sven Meier
Hi, Form2 is always working on the same model object. You have to swap its model object once you select one from the list in form1 - either by setting it into form2's model or by passing a model into form2's constructor, so that you can change the contained model object without having to

Re: empty form input after submit

2016-07-31 Thread Iamuser
Hello, Here is the code: //MyModel is the model for the bean used in both Form1 and Form2 final Form2 inputForm = new Form2("inputForm"); inputForm.setOutputMarkupId(true); add(inputForm); MyModel model = new MyModel(); final Form1 listForm = new Form1("listForm", new

Re: empty form input after submit

2016-07-31 Thread Sven Meier
Seems like form2 is showing previous Raw input (which normally is cleared on successful submit) or it is holding to the previous Model object. Hard to tell without seeing the code. Regards Sven Am 31. Juli 2016, 10:55, um 10:55, Iamuser schrieb: >Hello, >I'm using