cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: CForms: Upload Repeater
Date Thu, 26 Oct 2006 14:11:05 GMT
Jeremy Quinn wrote:
> Hi All
>
> I am doing some work on CForms.
>
> I have now got AJAX-type submission via IframeIO in Dojo working for
> forms that have file-upload controls in them.
>
> I am aiming to get progress-bars working for Upload Widgets in Cocoon
> ..... (there is a ProgressBarWidget in the new Dojo 0.4.0 :-) )
>
> But meanwhile, I am trying to get some sort of Upload Repeater working
> and I have several problems ......
>
> The usecase is that a user may add a number of file-upload controls to
> a repeater, select files for them, then submit them all in one go.
>
> One problem is, that if you have file-upload controls on a form, that
> have a file selected, they get submitted when you click on the
> repeater's add button, as these action-events submit the whole form.
>
> I would like to change this behaviour but do not know if this will
> break some other usecases.
>
> While working on the CForms Widget, to get IframeIO working, I
> switched to using Dojo's built-in form preparation code (instead of
> cocoon.forms.buildQueryString). Dojo has equivalent method that can
> take a filter function as an argument, meaning we could have a special
> filter to be used when submitting an action-event.
>
> Can you think of any usecases where sending only the minimal
> button-event would break existing CForms functionality ?

IIRC Dojo's built-in function doesn't allow to specify what input
triggered the form submit, which is absolutely needed for CForms to
properly handle fd:submits and fd:actions. Now I haven't looked at Dojo
for quite some time and it may allow it now.

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


Mime
View raw message