Re: form processing adding new inputs with an ajax onupdate

2013-05-16 Thread Simon B
Hi Paul, Thanks for the suggestion I'll check that out, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/form-processing-adding-new-inputs-with-an-ajax-onupdate-tp4658758p4658856.html Sent from the Users forum mailing list archive at Nabble.com. -

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

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-13 Thread Paul Bors
Have you tried: provisionDefaultPeriod = new DropDownChoice("provisionDefaultPeriod", new PropertyModel(getTypedModel(), "provisionDefaultPeriod"), activeTimePeriods, renderer); // drop down for choosing the service commercialServiceInput.add(new AjaxFormComponentUpdatingB