Hello,
I'm having the follogin problem:
I'm creating a FormComponent that inherits from AbstractFormComponent.
My component has some input components inside and then behaves like a @For.
When the method rewindFormComponent(IMarkupWriter writer, IRequestCycle
cycle) is called
the getSource() and getEditIndex() are null while I expect them not to be
null at least for getSource().
The code is the following:
protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle
cycle) {
try
{
renderControlComponents(writer, cycle);
setIndex(getSubmitIndex());
setValue(getSource().get(getIndex()));
renderBody(writer, cycle);
// This is atypical validation - since this component does not
explicitly bind to an object
getValidatableFieldSupport().validate(this, writer, cycle,
getValue());
} catch (ValidatorException e) {
setEditIndex(getSubmitIndex());
getForm().getDelegate().record(e);
}
}
what shoud I do to have a correct rewindFormComponent behaviour ?
Thanks in advance,
kiuma