Re: Overriding Form.onFileUploadException in nested forms

2013-05-15 Thread guillaume.mary
issue 5190 created because of same question asked here
http://apache-wicket.1842946.n4.nabble.com/Manage-exceptions-on-a-nested-multipart-upload-form-td4658815.html

https://issues.apache.org/jira/browse/WICKET-5190



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Overriding-Form-onFileUploadException-in-nested-forms-tp4657874p4658821.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Overriding Form.onFileUploadException in nested forms

2013-04-10 Thread Martin Grigorov
Hi,

Please create a ticket in Jira with a quickstart.


On Wed, Apr 10, 2013 at 7:11 PM, Martin Dietze  wrote:

> I am using Wicket 6.6.0, and I'm running into a nasty problem
> with upload sizes. In a complex editor, there is an upload
> component which itself contains a Form with an AjaxButton for
> triggering the upload.
>
> If the upload exceeds the allowed max size, the
> SizeLimitExceededException is caught in the outer form, i.e. the
> form to which the upload component was added. Thus, I cannot
> override Form.onFileUploadException in my inner form and thus
> not implement a custom handling (this is necessary, as in this
> case I need to explicitly call FeedbackPanel.error on my upload
> component's FeedbackPanel and add update it via Ajax). Adding
> custom code to the outer form is not an option as this way I'd
> have to modify all users of my upload component.
>
> Is this a bug or a feature?
>
> M'bert
>
> --
> --- / http://herbert.the-little-red-haired-girl.org /
> -
> =+=
> Wer bist du, ungezaehltes Frauenzimmer? Du bist - bist du? - Die Leute
> sagen,
> du waerest - lass sie sagen, sie wissen nicht, wie der Kirchturm steht.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Overriding Form.onFileUploadException in nested forms

2013-04-10 Thread Martin Dietze
I am using Wicket 6.6.0, and I'm running into a nasty problem
with upload sizes. In a complex editor, there is an upload
component which itself contains a Form with an AjaxButton for
triggering the upload. 

If the upload exceeds the allowed max size, the 
SizeLimitExceededException is caught in the outer form, i.e. the
form to which the upload component was added. Thus, I cannot
override Form.onFileUploadException in my inner form and thus
not implement a custom handling (this is necessary, as in this
case I need to explicitly call FeedbackPanel.error on my upload
component's FeedbackPanel and add update it via Ajax). Adding
custom code to the outer form is not an option as this way I'd
have to modify all users of my upload component.

Is this a bug or a feature? 

M'bert

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
Wer bist du, ungezaehltes Frauenzimmer? Du bist - bist du? - Die Leute sagen, 
du waerest - lass sie sagen, sie wissen nicht, wie der Kirchturm steht. 

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