Re: form processing adding new inputs with an ajax onupdate

2013-05-15 Thread Paul Bors
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

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
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

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
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

RE: form processing adding new inputs with an ajax onupdate

2013-05-13 Thread Paul Bors
Have you tried: provisionDefaultPeriod = new DropDownChoiceTimePeriod(provisionDefaultPeriod, new PropertyModelTimePeriod(getTypedModel(), provisionDefaultPeriod), activeTimePeriods, renderer); // drop down for choosing the service commercialServiceInput.add(new