Re: FormComponentPanel and propagating model value to components

2015-04-09 Thread mscoon
Well the code is a bit more complex that what I originally pasted. ComponentA is instantiated in an overridable method so that subclasses can provide a different implementation. Furthermore, the model cannot be decided at initialization time, so you can't simply call componentA.setModel() right aft

Re: FormComponentPanel and propagating model value to components

2015-04-08 Thread Patrick Davids
Hi, quite unusal to me using a behavior to set a model. Why dont you delegate to your inner textfiled by implementing an own setXYZModel()-method? Or bind your inner textfield direct by providing a particular model in your Constructor of your custom MyFormComponentPanel? And no onInitialize(

FormComponentPanel and propagating model value to components

2015-04-08 Thread mscoon
Hi all, I have a FormComponentPanel. Is it okay if I set its components models using a behavior that overrides onConfigure() as below? public class MyFormComponentPanel extends FormComponentPanel { protected void onInitialize() { super.onInitialize(); componentA = new TextFie