You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by JulianS <js...@yahoo.com> on 2008/01/22 19:40:49 UTC

FileUploadField problem

We're having a strange problem with FileUploadField (using Wicket 1.3.0). If
the user enters a bogus string in the text part of the field, the form will
not respond. That is, even if you click a button or hit enter, there is no
response and no exception. How can we get it to respond with an IOException
or a FileNotFoundException, or get it to execute?

I've stripped down my code to the simplest possible test case to make sure
it's not anything in my code:

    <form wicket:id="addhostform">
      <fieldset>
      <input type="file" wicket:id="upload" />
      <input type="submit" wicket:id="ok"  value="OK" />
      <input type="submit" wicket:id="cancel"  value="Cancel" />
      </fieldset>
    </form>

    Form form = new Form("addhostform");
    final FileUploadField fuf = new FileUploadField("upload"); 
    form.add(fuf );
    ...buttons added here...

Thanks,
Julian

-- 
View this message in context: http://www.nabble.com/FileUploadField-problem-tp15025372p15025372.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField problem

Posted by Igor Vaynberg <ig...@gmail.com>.
looks like IE doesnt let you submit the form if a bogus file location
is entered. not sure this is wicket specific...

-igor


On Jan 23, 2008 9:51 AM, JulianS <js...@yahoo.com> wrote:
>
> Igor,
>
> We see the same problem for the URL below on IE 6 and 7. It works fine in
> FF.
>
> Thanks,
> Julian
>
>
> igor.vaynberg wrote:
> >
> > seems to be working fine at http://wicketstuff.org/wicket13/upload/single
> >
> > -igor
> >
>
> --
> View this message in context: http://www.nabble.com/FileUploadField-problem-tp15025372p15048016.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField problem

Posted by JulianS <js...@yahoo.com>.
Igor,

We see the same problem for the URL below on IE 6 and 7. It works fine in
FF.

Thanks,
Julian


igor.vaynberg wrote:
> 
> seems to be working fine at http://wicketstuff.org/wicket13/upload/single
> 
> -igor
> 

-- 
View this message in context: http://www.nabble.com/FileUploadField-problem-tp15025372p15048016.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField problem

Posted by Igor Vaynberg <ig...@gmail.com>.
seems to be working fine at http://wicketstuff.org/wicket13/upload/single

-igor


On Jan 22, 2008 10:40 AM, JulianS <js...@yahoo.com> wrote:
>
> We're having a strange problem with FileUploadField (using Wicket 1.3.0). If
> the user enters a bogus string in the text part of the field, the form will
> not respond. That is, even if you click a button or hit enter, there is no
> response and no exception. How can we get it to respond with an IOException
> or a FileNotFoundException, or get it to execute?
>
> I've stripped down my code to the simplest possible test case to make sure
> it's not anything in my code:
>
>     <form wicket:id="addhostform">
>       <fieldset>
>       <input type="file" wicket:id="upload" />
>       <input type="submit" wicket:id="ok"  value="OK" />
>       <input type="submit" wicket:id="cancel"  value="Cancel" />
>       </fieldset>
>     </form>
>
>     Form form = new Form("addhostform");
>     final FileUploadField fuf = new FileUploadField("upload");
>     form.add(fuf );
>     ...buttons added here...
>
> Thanks,
> Julian
>
> --
> View this message in context: http://www.nabble.com/FileUploadField-problem-tp15025372p15025372.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org