I have a Wicket application which is required to retrieve files from the
local networks it's connected to.  The files can be located on a Windows
or Linux file system.

My strategy so far is to use JCIFS to grab the file and write it to a
temporary local (to the webserver) file which is then transferred to the
users browser.  The first part is working well and I can extend Wicket's
DownloadLink (which creates a ResourceStreamRequestTarget from a
FileResourceStream and then sets the Request target) in order to achieve
my goal.

My problem is that I now need to migrate to an AjaxFallbackLink instead
of the Link class which DownloadLink extends.  If I simply migrate the
DownloadLink OnClick() code to a new AjaxFallbackLink the file is
streamed to the Ajax response (You can see this in the AJAX WICKET
DEBUG) and nothing much happens from the users perspective.  This kind
of makes sense since I'm now dealing in Ajax requests and responses.

I've checked the archive and found some similar looking problems which
have pointed my towards things like Dynamic/shared resources or
pre-pending JavaScript to the target but I've either not understood or
not been able to implement these solutions.

Any solutions, ideas, wiki pointers would be most welcome.

Regards.

 



Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

Reply via email to