org.apache.tapestry5.services
Interface ClientInfrastructure

All Known Implementing Classes:
ClientInfrastructureImpl, EmptyClientInfrastructure

public interface ClientInfrastructure

Client infrastructure is a base set of JavaScript libraries and CSS stylesheet files, The core JavaScript libraries are added to any page that adds JavaScript to the page. The CSS stylesheet files are added to any page with a root <html> element.

Tapestry's default JavaScript stack includes Prototype, Scriptaculous, and a Tapestry-specific library. Note that these individual library files will be combined into a single virtual resource (from the client's point of view).

Tapestry's default CSS stack contains the Tapestry default stylesheet, and the stylesheet used by Tapestry's Blackbird console.

Overriding the default ClientInfrastructure service gives an application complete freedom to replace any part of Tapestry's default client-side resources.

Since:
5.1.0.2

Method Summary
 List<Asset> getJavascriptStack()
          Returns the (localized) assets for the scripts to be included as core JavaScript stack.
 List<Asset> getStylesheetStack()
          Returns the (localized) assets for CSS stylesheet files to be included on any page.
 

Method Detail

getJavascriptStack

List<Asset> getJavascriptStack()
Returns the (localized) assets for the scripts to be included as core JavaScript stack. The assets for the stack will be added before any other JavaScript libraries included in the render of the page. Adding a library or any initialization JavaScript triggers the inclusion of the JavaScript stack.

Returns:
list of assets

getStylesheetStack

List<Asset> getStylesheetStack()
Returns the (localized) assets for CSS stylesheet files to be included on any page. These are ordered before any stylesheets specifically included (to allow default rules to be easily overridden). The default core stack includes the Tapestry default stylesheet, and an additional stylesheet for the Blackbird JavaScript console.

Returns:
list of assets


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.