>> The problem is, that even though I re-use the textField, it does not >> know its convertedInput (probably because the form has not actually >> been submitted?) and it resets itself to its original state. I would >> like it to keep its state as it was when the new dropdown value was >> selected. > > Have you tried AjaxFormComponentUpdatingBehavior?
Will this sumit all form components? > The easiest case is when you can submit always and save the > data when there are no errors. The problem is, that the form is filled partially and more options became available depending on the dropdownchoices made. This means that at early stages the form is erroneous. Now I use the AjaxFormSubmitBehavior and override the onError -> onSubmit, i.e., I effectively ignore all errors during these events. I would be glad if I could skip the validation alltogether. The necessary feature I get with AjaxFormSubmitBehavior, is that it will send the dirty values of the form components so that when they are repainted, they reflect their state just before the ajax event. I wonder if AjaxFormComponentUpdatingBehavior will do the same or will it submit only one component? I think I would need an "AjaxFormUpdatingBehavior", i.e., update the whole form's state whithout passing values into the model/validation. This is similar to Button's "defaultFormProcessing=false". I could ofcourse add a hidden button which is called whenever the dropdownchoice is changed, but I would rather implement this in java. ** Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
