I've run into a bit of code that I'm not sure how to deal with (or am not sure what the wicket way would be). I need to be able to serve raw bytes from dynamic files in the system. Think of it as a managed file download (although not exactly).

In a plain old servlet this would be fairly trivial, you'd simply capture the id of the resource and feed it back out or redirect... you would be able to do this with Wicket as well, but it seems a bit heavy to have to read in the bytes and write them out again using the getRequestCycle().setRequestTarget(...) pattern.

I've been looking at Resource as one possibility, but am unsure how to hook this together..

Does anyone have some suggestions on how this might be done cleanly?

- Brill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to