You chose EventLink!
Return
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- We need a doctype to allow us to use special characters like
We use a "strict" DTD to make IE follow the alignment rules. -->
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
<body class="container">
<h3>Styling Links and Submits (2)</h3>
<div class="eg">
<p>You chose ${yourChoice}!</p>
<a t:type="pagelink" t:page="examples/styling/StylingLinksAndSubmits1" href="#">Return</a>
</div>
<t:pagelink page="Index">Home</t:pagelink><br/><br/>
<t:tabgroup>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/styling/StylingLinksAndSubmits2.tml"/>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/styling/StylingLinksAndSubmits2.java"/>
<t:sourcecodetab src="/web/src/main/resources/META-INF/assets/css/examples/olive.css"/>
</t:tabgroup>
</body>
</html>
package jumpstart.web.pages.examples.styling;
import org.apache.tapestry5.annotations.Import;
@Import(stylesheet="css/examples/olive.css")
public class StylingLinksAndSubmits2 {
private String yourChoice;
public void set(String yourChoice) {
this.yourChoice = yourChoice;
}
void onActivate(String yourChoice) {
this.yourChoice = yourChoice;
}
String onPassivate() {
return yourChoice;
}
public String getYourChoice() {
return yourChoice;
}
}
.eg {
margin: 20px 0;
padding: 14px;
color: olive;
border: 1px solid #ddd;
border-radius: 6px;
-webkit-border-radius: 6px;
-mox-border-radius: 6px;
}