On Thu, 14 Feb 2008, Jay Hogan wrote: > Here's what I'm trying to do. I'm designing a SearchPanel component that > accepts a List<SearchField> and renders these items on a search form. The > SearchField object has properties for search field name, search operator (an > enum), search value and a list of allowed search operators. I am following > the dynamic form > elements<http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html>example
Wow, that's a complicated search! I hope that you have a lot of data behind it. > This is where I run into problems. If I add the form component to the > AjaxRequestTarget provided by AjaxEditableChoiceLabel.onSubmit, any dirty > form components lose their values. I've tried to add a call to Hmm, so are you submitting the entire form when any AjaxEditableChoiceLabel is edited? Have you checked that it does submit the form? If not you might be better off by rolling your own component with AjaxFormSubmittingBehavior. > form.processin the > AjaxEditableChoiceLabel.onSubmit method in attempt to force the form to > update it's model, but that doesn't work. I also tried just adding the > ListItem to the AjaxRequestTarget but the component is not re-rendered by > the target. Have you tried adding a feedback panel to see if there are validation errors? I didn't understand very well what was the expected behavior of each input element and the form (a practical example would be handy). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
