I never used onConfigure() but conform it's API is called once per request
on a component before is about to be rendered.
Thus your original code:
@Override
public void onConfigure() {
setVisible(isOngoingService());
}
Is only called once if I'm not mistaken.
Whereas you want the field to
Hi Paul,
Thanks for your suggestion, hadn't tried that, but I have now and it doesn't
fix my problem.
I use the idiom
rather than simply calling
Because:
1. depending on the situation it can lead to many setVisible calls in
different parts of the page
2. it localises the visible setting to
Hi Paul,
I was mistaken. I apologise.
Previously I hadn't completely removed the onConfigure method from the form
component and simply called the setVisible in the onUpdate method of the
AjaxFormComponentUpdatingBehavior(onchange) / AFCUB(onchange).
So your suggestion worked!
Thank you very
Have you tried:
provisionDefaultPeriod = new
DropDownChoiceTimePeriod(provisionDefaultPeriod,
new PropertyModelTimePeriod(getTypedModel(),
provisionDefaultPeriod),
activeTimePeriods, renderer);
// drop down for choosing the service
commercialServiceInput.add(new