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">
Your account <span jwcid="insertAccountStatus"/>.
</body>
<component id="body" type="Body">
<binding name="bgcolor" expression="statusColor"/>
</component>
<component id="insertAccountStatus" type="Insert">
<binding name="value" expression="accountStatus"/>
</component>
public class AccountPage extends BasePage {
private String accountStatus;
private String statusColor;
public String getAccountStatus() { return accountStatus; }
public String getStatusColor() { return statusColor; }
public void detach() {
accountStatus = null;
statusColor = null;
super.detach();
}
}
|