You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jd...@apache.org on 2009/01/21 21:26:29 UTC
svn commit: r736403 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java
Author: jdonnerstag
Date: Wed Jan 21 12:26:28 2009
New Revision: 736403
URL: http://svn.apache.org/viewvc?rev=736403&view=rev
Log:
revert-1917
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java?rev=736403&r1=736402&r2=736403&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java Wed Jan 21 12:26:28 2009
@@ -36,10 +36,7 @@
import org.apache.wicket.markup.MarkupException;
import org.apache.wicket.markup.MarkupStream;
import org.apache.wicket.markup.WicketTag;
-import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.IHeaderContributor;
-import org.apache.wicket.markup.html.JavascriptPackageResource;
-import org.apache.wicket.markup.html.PackageResource;
import org.apache.wicket.markup.html.internal.HtmlHeaderContainer;
import org.apache.wicket.model.IComponentAssignedModel;
import org.apache.wicket.model.IComponentInheritedModel;
@@ -924,24 +921,6 @@
{
setModelImpl(wrap(model));
}
-
- // Any component is allowed to have associated *.js or *.css file which are automatically
- // added to the header section of the page.
- // ignore anonymous classes and internal components
- String name = this.getClass().getSimpleName();
- if ((name != null) &&
- ((this instanceof Page) || ((id != null) && (id.length() > 0) && (id.charAt(0) != '_'))))
- {
- if (PackageResource.exists(this.getClass(), name + ".css", getLocale(), getStyle()))
- {
- add(CSSPackageResource.getHeaderContribution(this.getClass(), name + ".css"));
- }
-
- if (PackageResource.exists(this.getClass(), name + ".js", getLocale(), getStyle()))
- {
- add(JavascriptPackageResource.getHeaderContribution(this.getClass(), name + ".js"));
- }
- }
}
/**