file uploads are not supported via ajax

-igor


On Wed, Apr 23, 2008 at 8:11 AM, liny <[EMAIL PROTECTED]> wrote:
>
>  Hi,sir:
>
>  I am newbie.
>  I have a file upload web page and want to use AJAX to submit form.
>  So I use IndicatingAjaxButton and add an AjaxFormSubmitBehavior to this
>  button.
>  Here is code snippet:
>     ajaxFormSubmitBehavior = new AjaxFormSubmitBehavior(uploadForm,
>  "onclick")
>     {
>       protected void onSubmit(AjaxRequestTarget arg0)
>       {
>         System.out.println("ajaxFormSubmitBehavior - onSubmit");
>       }
>
>       protected void onError(AjaxRequestTarget arg0)
>       {
>         System.out.println("ajaxFormSubmitBehavior - onError");
>       }
>     };
>
>     indicatingAjaxBtn.add(ajaxFormSubmitBehavior);
>     uploadForm.add(indicatingAjaxBtn);
>
>  There are problems:
>  1. When click indicatingAjaxBtn button on html page, indicator disappeared.
>  Why? How to solve it?
>  2. When click indicatingAjaxBtn button on html page, why it doesn't execute
>  its protected onSubmit() method?
>  --
>  View this message in context: 
> http://www.nabble.com/Adding-AjaxFormSubmitBehavior-to-IndicatingAjaxButton-problems-tp16834656p16834656.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to