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, wrote:
>
>
>
> Thanks, this is the case.
>
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.
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
convers
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 coul
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 IConverter getConverter()
{
// -- returns converter
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]
>Se