[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Fileupload dialog started by menuitem - is this possible?  XML
Forum Index -> Development
Author Message
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5527
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
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
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team