Hi,

You can add AjaxFormComponentUpdatingBehavior to all TextFields and
set some error class when they are invalid. Add onsubmit event
listener (pure JS) to the form that will check all form elements for
such class and refuse the submit (by returning false) if there is at
least one invalid text field.

On Mon, Feb 6, 2012 at 3:33 PM, Daniel Meier <[email protected]> wrote:
> Hi everyone
>
> Little advice needed: I have a Form with several TextField's and a
> MultiFileUploadField. If you select some files to upload and enter some
> text in the TextFields - after the submit everything is fine.
> Now if in case some TextField fire a validation error and the page is
> rendered again, you have to select the files to upload one more time. Is
> there any possibility to keep the state as long as validation errors occur?
> Btw same problem wit FileUploadField.
>
> Using wicket 1.5.3.
>
> thx



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to