Hi,

create your FileSystemResourceReference without the path argument and override #getResource():

    @Override
    public IResource getResource()
    {
        return new FileSystemResource(/* --- create a path --- */);
    }

Have fun
Sven



Am 13.06.2018 um 21:48 schrieb sorinev:
I created a quickstart for this, but I imagine you're long since aware of it.
But, what am I supposed to do about sun.nio.fs.UnixPath throwing a
java.io.NotSerializableException (passed in to FileSystemResourceReference)?
The page still works, but the server log gets really nasty, really quick,
especially since I rely on FileSystemResourceReference extensively for a lot
of images being displayed on a central page of my site (I use the file
system for images, instead of my war file, because otherwise the war file
would be 300MB and harder to maintain).

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to