throw new IllegalStateException(getClass().getName() +
" failed to retrieve a File object from model");
}
final String fn = (fileName != null) ? fileName : file.getName();
IResourceStream resourceStream = new FileResourceStream(
new org.apache.wicket.util.file.File(file));
getRequestCycle().setRequestTarget(new ResourceStreamRequestTarget(resourceStream)
{
public String getFileName()
{