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
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(
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