Customizing or replacing MultiFileUploadField

2014-06-06 Thread Martin Dietze
I need to extend an existing component using a MultiFileUploadField in
a way that the entries created after having selected files allow the
user to add some information related to the individual uploads.

The intended end result is somewhat like this:

[select-button] Caption: blah blah

x File 1[___] enter descriptive text here
x File 2[___] enter descriptive text here

[upload-and-save-button]


As I found out the listing of entries in the above component works
solely using Javascript.

Now I need to decide what the best option is:
(1) Add the missing functionality in Javascript (which looks pretty
awkward to me, maybe also because of my poor knowledge of Javascript).
(2) Replace MFUF by something that does the same but uses Wicket/Ajax for this.

Are there any ready-to-use multiple upload components out there I
could use for (2)?
If not, any hints how to go about (1)?

Cheers,

Martin

-- 
-- mdie...@gmail.com --/-- mar...@the-little-red-haired-girl.org 
- / http://herbert.the-little-red-haired-girl.org / -

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



Re: Customizing or replacing MultiFileUploadField

2014-06-06 Thread Martin Grigorov
Hi,


On Fri, Jun 6, 2014 at 2:25 PM, Martin Dietze mdie...@gmail.com wrote:

 I need to extend an existing component using a MultiFileUploadField in
 a way that the entries created after having selected files allow the
 user to add some information related to the individual uploads.

 The intended end result is somewhat like this:

 [select-button] Caption: blah blah

 x File 1[___] enter descriptive text here
 x File 2[___] enter descriptive text here

 [upload-and-save-button]


 As I found out the listing of entries in the above component works
 solely using Javascript.

 Now I need to decide what the best option is:
 (1) Add the missing functionality in Javascript (which looks pretty
 awkward to me, maybe also because of my poor knowledge of Javascript).


All similar widgets that I know use JavaScript to do this.
And they need JavaScript because otherwise you have to upload the files
immediately to be able to show any info about them with Ajax.
And depending on the size of the file it may take a while before you have
the chance to show your stuff with the Ajax response...


 (2) Replace MFUF by something that does the same but uses Wicket/Ajax for
 this.

 Are there any ready-to-use multiple upload components out there I
 could use for (2)?


Wicket Bootstrap provides an integration for the old version of
http://jasny.github.io/bootstrap/javascript/#fileinput.
We have a ticket to upgrade it:
https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/372
Or/and to integrate with DropZone.js :
https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/371

http://plugins.krajee.com/file-input looks very nice too!


 If not, any hints how to go about (1)?

 Cheers,

 Martin

 --
 -- mdie...@gmail.com --/-- mar...@the-little-red-haired-girl.org
 
 - / http://herbert.the-little-red-haired-girl.org /
 -

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