Re: FormComponent independent from the Model/Model object

2013-07-10 Thread Dmitriy Neretin
); } } ~ Thank you, Paul Bors -Original Message- From: Joachim Schrod [mailto:jsch...@acm.org] Sent: Tuesday, July 09, 2013 6:27 PM To: users@wicket.apache.org Subject: Re: FormComponent independent from the Model/Model object Dmitriy Neretin wrote: Hi everyone, I have a dummy

FormComponent independent from the Model/Model object

2013-07-09 Thread Dmitriy Neretin
Hi everyone, I have a dummy question: If I have a panel with a form (not everything is my code) - public class MyPanel{ public MyPanel(id, IModelMyObj model){ super(id, new CompoundPropertyModelMyObj(model); FormMyObj form = new Form(id, model);

Re: FormComponent independent from the Model/Model object

2013-07-09 Thread Richard W. Adams
everything is a nail. From: Dmitriy Neretin dmitriy.nere...@googlemail.com To: users@wicket.apache.org Date: 07/09/2013 12:58 PM Subject:FormComponent independent from the Model/Model object Hi everyone, I have a dummy question: If I have a panel with a form (not everything

Re: FormComponent independent from the Model/Model object

2013-07-09 Thread Marios Skounakis
If you want to change the state of the input fields via javascript then do what Richard said. I guess since you are using an AjaxCheckBox you want to do it on the server side via ajax. So, here's what you need to do: add a boolean property to the Panel (e.g. componentsEnabled) and bind

Re: FormComponent independent from the Model/Model object

2013-07-09 Thread Joachim Schrod
Dmitriy Neretin wrote: Hi everyone, I have a dummy question: If I have a panel with a form (not everything is my code) - public class MyPanel{ public MyPanel(id, IModelMyObj model){ super(id, new CompoundPropertyModelMyObj(model); FormMyObj form = new

RE: FormComponent independent from the Model/Model object

2013-07-09 Thread Paul Bors
)); add(form); } } ~ Thank you, Paul Bors -Original Message- From: Joachim Schrod [mailto:jsch...@acm.org] Sent: Tuesday, July 09, 2013 6:27 PM To: users@wicket.apache.org Subject: Re: FormComponent independent from the Model/Model object Dmitriy Neretin wrote: Hi everyone, I