Yes, that was my main problem I didn't have an AjaxRequestTarget to load the 
Modal window. I'll try using a AjaxSelfUpdatingtimer or lazyLoadPanel in the 
response page constructor.
Thanks for your reply. 

> Subject: RE: Pop up window after file upload
> Date: Sun, 5 Apr 2009 22:30:30 +0200
> From: lind...@visionet.de
> To: users@wicket.apache.org
> 
> Yes, I think this can't be done your way. You need an AjaxRequestTarget to 
> open a ModalWindow. But I remember that it is not possible to upload a file 
> with an AjaxSubmitButton.
> The only way I can imagine to realize such a behavior is to call 
> setResponsePage after upload is done and do the trick in the ResponsePage 
> constructor. E.g. by adding a AjaxSelfUpdatingtimer or use a lazyLoadPanel. 
> Both provide you with an AjaxRequestTarget that can open a ModalWindow.
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: jack jones [mailto:bshd...@live.com] 
> Gesendet: Sonntag, 5. April 2009 22:06
> An: users@wicket.apache.org
> Betreff: RE: Pop up window after file upload
> 
> 
> No one has replied, does this mean it can't be done?
> 
>> From: bshd...@live.com
>> To: users@wicket.apache.org
>> Subject: Pop up window after file upload
>> Date: Thu, 2 Apr 2009 22:21:10 +0000
>> 
>> 
>> 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
> 
> _________________________________________________________________
> Windows Live(tm): Keep your life in sync.
> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

_________________________________________________________________
Quick access to your favorite MSN content and Windows Live with Internet 
Explorer 8. 
http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A

Reply via email to