It could probably be done using an AjaxSelfUpdatingBehavior, though you'll need to off load the actual uploading to a separate thread. Once the upload is complete set some flag/messages in the session and have the behaviour show the modal window based upon this(could use a second behaviour on the modal window to refresh its status). There's a few tutorials on the web about creating a custom progress bar for uploading, I think what you're trying to achieve isn't a million miles away from it. However I'm relatively new to wicket so I'm unsure if this is the best course of action(or if its even condoned!)

jack jones wrote:
Hi, I am trying to create a pop-up window to display some feedback after a bulk upload. The pop-up window needs to be created using a submitLink not a BookmarkablePageLink, I have tried using a BookmarkablPageLink but you cannot not override the onClick() method, also it cannot be an ajax pop-up because I am using a file upload. The code would be something like this:

add(new SubmitLink("add"){     public void onSubmit() {           FileUpload 
upload = fileUploadField.getFileUpload();
           List feedback = myService.doSomethingWithUpload(upload);                
   if(feedback.size()> 0 )                  Create a popup window to display 
the feedback.           }});

Do you know how this can be achieved?
Thanks in advance.
_________________________________________________________________
Rediscover HotmailĀ®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 3984 (20090402) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--





Kevin Logue

[t]            +353 (0) 42 939 1039

[e]           ke...@viableoptions.ie <mailto:ke...@viableoptions.ie>






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

Reply via email to