Re: Ultra strange behaviour AjaxButton - Form

2011-09-04 Thread Clint Checketts
Are you using a custom object? A converter could be failing to do the conversion. As in you have a 'User' object tied to your field and Wicket doesn't know by default how to convert the text 'Bob' into a new User object. On Fri, Sep 2, 2011 at 11:02 AM, martin.ase...@mail.bg wrote: Thanks,

Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-04 Thread martin . asenov
Hello, guys, I've got a FileUploadField as so: image1UploadField = new FileUploadField(image1_upload, new Model()); I aim to know if the field has value set even before the form gets processed and the item gets uploaded. I want to minimize traffic and memory usage of my application.

Re: Ultra strange behaviour AjaxButton - Form

2011-09-04 Thread martin . asenov
Thanks, Clint. I found that I had overriden the validate() method of one of the textfields. Shame on me :) Best regards, Martin - Цитат от Clint Checketts (checke...@gmail.com), на 04.09.2011 в 15:21 - Are you using a custom object? A converter could be failing to do the

Re: Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-04 Thread Christian Huber
Not sure if I completely understand what you want to do but as far as I do I guess the only way to do that is using java script. You could add a java script validation routine to the submit buttons onclick handler that aborts submission when the input field has no value. Another approach

Re: Can't properly override getConverter on FormComponent subclasses

2011-09-04 Thread Fabio Cechinel Veronez
do you mean something like ( in FormComponent class or one subclass ) : /** * subclasses would override it instead of getConverter(Class) so no cast is necessary */ protected IConverterT getConverter() { // -- returns

RE: Passing info to the modal window

2011-09-04 Thread Chris Colman
I often pass the 'real' or 'domain' model object that a form is editing as a parameter to the form/modal constructor and then store a IModel wicket model wrapper object around that model object in the form/modal. -Original Message- From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]