Author |
Message |
15/02/2011 20:25:02
|
mmueller
Active
Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline
|
Hi Björn,
we have a t:fileuploadbutton on one of our pages.
If the user clicks on this button, a file selection dialog appears.
After selecting a file, the bytes of this file are transfered to the server and passed in an ActionEvent to the configured actionListener.
Is it possible to start this process (beginning with displaying the file selection dialog) by a t:menuitem?
We want to enclose the file upload command and its hotkey also in the right click menu of the page.
Kind regards,
Markus
|
|
|
16/02/2011 07:52:16
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
there is a FILEUPLOAD component, which is "without rendering" and which is triggered via a server side trigger. So the menu item calls the server side functions, this triggers the trigger and the client opnes up the upload dialog.
This is not available yet for asynchronous upload, but you are talking about FILEUJPLOADBUTTON anyway... (we will add it for asynchronous upload short term).
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
07/03/2011 19:24:30
|
mmueller
Active
Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline
|
Hi Björn,
I have implemented your suggestion - it is working fine!
Many thanks.
Kind regards,
Markus
|
|
|
|