Okay, I hope that in a week or so I can be answering some questions on
this list as well as asking them, but for now...
Wicket-examples has a clear example of how to handle file uploads, and
I've used it as a basis for part of my application. But my user also
need to download the files that have been uploaded. How can I provide a
link that allows the user to download these files?
I'm assuming that my HTML will look something like this:
<a href="file.name" wicket:id="file-link" target="_blank">
<span wicket:id="description">Description</span>
</a>
and that the underlying object has these methods:
public String getDescription();
public String getFilename();
This time I remembered to check the How-To section of the wiki and
didn't see anything helpful. I'll try to update the wiki with the
answer once I get one I understand.
By the way, I don't have any control over MIME-types here. The user
might upload a text document, a PDF, a MS Word document, or may other
things. Is that going to be a problem?
Thanks again for all the help on this wonderful list,
-- Scott Sauyet
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user