Hi,

you'll have to write your own resource implementation (see ResourceStreamResource and FileResourceStream) and render a matching ResourceReference into the header.

Regards
Sven


On 29.04.2015 10:37, jahandideh_iman wrote:
Hi,
I want to be able to load custom js file from a local folder that is set in
a config file.
For example if my local folder is "C:/MyProject/Resources/" and I have
"myScript.js" in this folder.
I want to be able to write something like in my wicket component

     public void renderHead(IHeaderResponse response) {
         super.renderHead(response);
         response.render(JavaScriptHeaderItem.forReference(new
PackageResourceReference("myScript.js"));
     }

Where should I set my custom folder and How?
I don't think PackageResourceReference would work it this situation. How can
I achieve this functionality?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Load-Resources-From-Local-Folder-not-in-the-project-tp4670545.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to