You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2010/10/26 14:05:14 UTC

Should nested form be multipart if parent is multipart?

Hi!

Should nested form become multipart if parent is multipart? Because it
is on html level...

**
Martin

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


Re: Should nested form be multipart if parent is multipart?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Ok. I just wanted to understand the logic. Thanks for explaining.

**
Martin

2010/10/27 Igor Vaynberg <ig...@gmail.com>:
> they are submitted but not processed. files are excluded from those
> components because it may not be what the user wanted. if i click a
> button that adds a row to a form i dont expect it to also upload the
> file i set somewhere up higher. this is a problem in general with web
> and files - there is no way to keep the file selection for security
> reasons, but i think the way we are handling it right now is the best
> way.
>
> you can always override the multipart values on your forms.
>
> -igor
>
> On Wed, Oct 27, 2010 at 1:30 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>> Hmm.. when submitting inner form I think all form components are
>> actually submitted! They are available in rawInput values.
>>
>> **
>> Martin
>>
>> 2010/10/27 Martin Grigorov <mg...@apache.org>:
>>> I think it should not.
>>> Here is why:
>>> - when submitting the outer form all form components are submitted, thus
>>> multipart encoding should be used to transfer the "file" components
>>> - when submitting the inner form then just its own form components are
>>> submitted thus if at least one of the component is "file" then it needs
>>> multipart encoding, otherwise there is no need
>>>
>>> On Tue, Oct 26, 2010 at 8:32 PM, Martin Makundi <
>>> martin.makundi@koodaripalvelut.com> wrote:
>>>
>>>> I mean: should nested form internally return ismultipart=true if its
>>>> parent form is a multipart form?
>>>>
>>>> **
>>>> Martin
>>>>
>>>> 2010/10/26 Martin Grigorov <mg...@apache.org>:
>>>> > On HTML level nested form is just <div>.
>>>> > Give more details
>>>> >
>>>> > On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
>>>> > martin.makundi@koodaripalvelut.com> wrote:
>>>> >
>>>> >> Hi!
>>>> >>
>>>> >> Should nested form become multipart if parent is multipart? Because it
>>>> >> is on html level...
>>>> >>
>>>> >> **
>>>> >> Martin
>>>> >>
>>>> >> ---------------------------------------------------------------------
>>>> >> 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
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>

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


Re: Should nested form be multipart if parent is multipart?

Posted by Igor Vaynberg <ig...@gmail.com>.
they are submitted but not processed. files are excluded from those
components because it may not be what the user wanted. if i click a
button that adds a row to a form i dont expect it to also upload the
file i set somewhere up higher. this is a problem in general with web
and files - there is no way to keep the file selection for security
reasons, but i think the way we are handling it right now is the best
way.

you can always override the multipart values on your forms.

-igor

On Wed, Oct 27, 2010 at 1:30 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hmm.. when submitting inner form I think all form components are
> actually submitted! They are available in rawInput values.
>
> **
> Martin
>
> 2010/10/27 Martin Grigorov <mg...@apache.org>:
>> I think it should not.
>> Here is why:
>> - when submitting the outer form all form components are submitted, thus
>> multipart encoding should be used to transfer the "file" components
>> - when submitting the inner form then just its own form components are
>> submitted thus if at least one of the component is "file" then it needs
>> multipart encoding, otherwise there is no need
>>
>> On Tue, Oct 26, 2010 at 8:32 PM, Martin Makundi <
>> martin.makundi@koodaripalvelut.com> wrote:
>>
>>> I mean: should nested form internally return ismultipart=true if its
>>> parent form is a multipart form?
>>>
>>> **
>>> Martin
>>>
>>> 2010/10/26 Martin Grigorov <mg...@apache.org>:
>>> > On HTML level nested form is just <div>.
>>> > Give more details
>>> >
>>> > On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
>>> > martin.makundi@koodaripalvelut.com> wrote:
>>> >
>>> >> Hi!
>>> >>
>>> >> Should nested form become multipart if parent is multipart? Because it
>>> >> is on html level...
>>> >>
>>> >> **
>>> >> Martin
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> 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
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> 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: Should nested form be multipart if parent is multipart?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hmm.. when submitting inner form I think all form components are
actually submitted! They are available in rawInput values.

**
Martin

2010/10/27 Martin Grigorov <mg...@apache.org>:
> I think it should not.
> Here is why:
> - when submitting the outer form all form components are submitted, thus
> multipart encoding should be used to transfer the "file" components
> - when submitting the inner form then just its own form components are
> submitted thus if at least one of the component is "file" then it needs
> multipart encoding, otherwise there is no need
>
> On Tue, Oct 26, 2010 at 8:32 PM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> I mean: should nested form internally return ismultipart=true if its
>> parent form is a multipart form?
>>
>> **
>> Martin
>>
>> 2010/10/26 Martin Grigorov <mg...@apache.org>:
>> > On HTML level nested form is just <div>.
>> > Give more details
>> >
>> > On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
>> > martin.makundi@koodaripalvelut.com> wrote:
>> >
>> >> Hi!
>> >>
>> >> Should nested form become multipart if parent is multipart? Because it
>> >> is on html level...
>> >>
>> >> **
>> >> Martin
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>>
>>
>

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


Re: Should nested form be multipart if parent is multipart?

Posted by Martin Grigorov <mg...@apache.org>.
I think it should not.
Here is why:
- when submitting the outer form all form components are submitted, thus
multipart encoding should be used to transfer the "file" components
- when submitting the inner form then just its own form components are
submitted thus if at least one of the component is "file" then it needs
multipart encoding, otherwise there is no need

On Tue, Oct 26, 2010 at 8:32 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> I mean: should nested form internally return ismultipart=true if its
> parent form is a multipart form?
>
> **
> Martin
>
> 2010/10/26 Martin Grigorov <mg...@apache.org>:
> > On HTML level nested form is just <div>.
> > Give more details
> >
> > On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
> > martin.makundi@koodaripalvelut.com> wrote:
> >
> >> Hi!
> >>
> >> Should nested form become multipart if parent is multipart? Because it
> >> is on html level...
> >>
> >> **
> >> Martin
> >>
> >> ---------------------------------------------------------------------
> >> 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: Should nested form be multipart if parent is multipart?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
I mean: should nested form internally return ismultipart=true if its
parent form is a multipart form?

**
Martin

2010/10/26 Martin Grigorov <mg...@apache.org>:
> On HTML level nested form is just <div>.
> Give more details
>
> On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> Hi!
>>
>> Should nested form become multipart if parent is multipart? Because it
>> is on html level...
>>
>> **
>> Martin
>>
>> ---------------------------------------------------------------------
>> 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: Should nested form be multipart if parent is multipart?

Posted by Martin Grigorov <mg...@apache.org>.
On HTML level nested form is just <div>.
Give more details

On Tue, Oct 26, 2010 at 2:05 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Hi!
>
> Should nested form become multipart if parent is multipart? Because it
> is on html level...
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>