RE: how to modify internal JavascriptResourceReference packaged with component

2013-02-20 Thread evan
6:02 PM To: evan Subject: Re: how to modify internal JavascriptResourceReference packaged with component final ResourceReference YOURJS = new JavaScriptResourceReference( Yourclass.class, YourMultiFileUploadField.js); final int max = 3; MultiFileUploadField x = new MultiFileUploadField

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-18 Thread Martin Grigorov
Hi, This is improved in Wicket 6. You can use org.apache.wicket.protocol.http.WebApplication#addResourceReplacement for exactly this use case. See http://wicketinaction.com/2012/07/wicket-6-resource-management/ You are recommended to upgrade your application. On Thu, Feb 14, 2013 at 1:39 AM,

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-18 Thread evan
is great. Thanks Martin - I will try to upgrade the application soon. In the meantime, I will override the necessary methods in the class, as per Francois' suggestion. if the question is how to modify internal JavascriptResourceReference packaged with component I will just override

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-18 Thread Francois Meillet
the necessary methods in the class, as per Francois' suggestion. if the question is how to modify internal JavascriptResourceReference packaged with component I will just override @Override public void renderHead(IHeaderResponse response) { // initialize

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread evan
://apache-wicket.1842946.n4.nabble.com/how-to-modify-internal-JavascriptResourceReference-packaged-with-component-tp4656344p4656416.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread Francois Meillet
(' + upload.getMarkupId() + '));)); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-modify-internal-JavascriptResourceReference-packaged-with-component-tp4656344p4656416.html Sent from the Users forum mailing list archive at Nabble.com

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread evan
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-modify-internal-JavascriptResourceReference-packaged-with-component-tp4656344p4656422.html Sent from the Users forum mailing list archive at Nabble.com

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-15 Thread Francois Meillet
if the question is how to modify internal JavascriptResourceReference packaged with component I will just override @Override public void renderHead(IHeaderResponse response) { // initialize the javascript library response.render

Re: how to modify internal JavascriptResourceReference packaged with component

2013-02-14 Thread Francois Meillet
Hi Evan, try this private static final ResourceReference YOURJS = new JavaScriptResourceReference( YourClassWhereJavascriptReside.js.class, YourModifiedJavascript.js); @Override public void renderHead(IHeaderResponse response) {

how to modify internal JavascriptResourceReference packaged with component

2013-02-13 Thread Evan Sable
Hi, I'm working on a project that's on wicket 1.4. It's using the MultiFileUploadField class. I see in the code for that class that in renderHead, it calls: response.renderJavascriptReference(JS); and earlier it defines: private static final ResourceReference JS = new