Author: ivaynberg
Date: Wed Feb 28 17:49:40 2007
New Revision: 513100
URL: http://svn.apache.org/viewvc?view=rev&rev=513100
Log:
components can be iheadercontributor(s) too!
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java?view=diff&rev=513100&r1=513099&r2=513100
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
Wed Feb 28 17:49:40 2007
@@ -1766,6 +1766,11 @@
{
if (isVisible())
{
+ if (this instanceof IHeaderContributor)
+ {
+
((IHeaderContributor)this).renderHead(container.getHeaderResponse());
+ }
+
// Ask all behaviors if they have something to
contribute to the
// header or body onLoad tag.
if (this.behaviors != null)