Block Component Index Button

Body
org.apache.tapestry.html.Body
Visual / Non Visual Component
 
Description
Provides the HTML <body> tag. The Body component is used dynamically JavaScript for other components such as the Script and Rollover component.
See Also
Rollover, Script, Shell
Parameters
Name Type Direction Required Default Description
element String in no body The element to use when rendering a tag. When using a Body component in a frameset, this may be changed to "frameset".

Body: rendered
Informal parameters: allowed
Reserved parameters: "onload"

Examples

The Body component is used here to dynamically set the page's background color using the informal parameter 'bgcolor'.

Please also see the Shell example which illustrates how to integrate style sheets into your applications.

Your account of $645.35 is 2 Months overdue.

			
<body jwcid="@Body" bgcolor="ognl:statusColor">
  Your account <span jwcid="@Insert" value="ognl:accountStatus"/>.
</body>


<property-specification name="accountStatus" type="java.lang.String" persistent="yes"/>
<property-specification name="statusColor" type="java.lang.String" persistent="yes"/>
public abstract class AccountPage extends BasePage { public void setAccountStatus(String accountStatus); public void setStatusColor(String statusColor); }

Block Component Index Button