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
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,
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
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
://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
(' +
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
--
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
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
Hi Evan,
try this
private static final ResourceReference YOURJS = new
JavaScriptResourceReference( YourClassWhereJavascriptReside.js.class,
YourModifiedJavascript.js);
@Override
public void renderHead(IHeaderResponse response)
{
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
10 matches
Mail list logo