wicket.behavior
Class HeaderContributor.JavaScriptReferenceHeaderContributor

java.lang.Object
  extended by wicket.behavior.HeaderContributor.ResourceReferenceHeaderContributor
      extended by wicket.behavior.HeaderContributor.JavaScriptReferenceHeaderContributor
All Implemented Interfaces:
java.io.Serializable, IHeaderContributor
Enclosing class:
HeaderContributor

public static final class HeaderContributor.JavaScriptReferenceHeaderContributor
extends HeaderContributor.ResourceReferenceHeaderContributor

prints a javascript resource reference.

See Also:
Serialized Form

Constructor Summary
HeaderContributor.JavaScriptReferenceHeaderContributor(java.lang.Class scope, java.lang.String name)
          Construct.
HeaderContributor.JavaScriptReferenceHeaderContributor(ResourceReference reference)
          Construct.
 
Method Summary
 void renderHead(Response response)
          Render to the web response whatever the component wants to contribute to the head section.
 
Methods inherited from class wicket.behavior.HeaderContributor.ResourceReferenceHeaderContributor
equals, getResourceReference, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderContributor.JavaScriptReferenceHeaderContributor

public HeaderContributor.JavaScriptReferenceHeaderContributor(java.lang.Class scope,
                                                              java.lang.String name)
Construct.

Parameters:
scope - The scope of the reference (typically the calling class)
name - The name .

HeaderContributor.JavaScriptReferenceHeaderContributor

public HeaderContributor.JavaScriptReferenceHeaderContributor(ResourceReference reference)
Construct.

Parameters:
reference -
Method Detail

renderHead

public void renderHead(Response response)
Description copied from interface: IHeaderContributor
Render to the web response whatever the component wants to contribute to the head section.

Note: This method is kind of dangerous as users are able to write to the output whatever they like.

Parameters:
response - Response object
See Also:
IHeaderContributor.renderHead(wicket.Response)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.