@Component
public class MyComponent {
// Component code here
}
@Component
public class MyComponent {
private MyService myService;
@Inject
public MyComponent(MyService myService) {
this.myService = myService;
}
}
@Component
public class MyComponent {
@Property
private String myProperty;
// Getter and setter methods will be automatically generated
}
@Page(path = "/myPage", layout = "myLayout")
public class MyPage {
// Page code here
}
@Component
public class MyComponent {
@ActivationRequestParameter
private String myParameter;
// Component code here
}
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-core</artifactId>
<version>5.7.0</version>
</dependency>
<servlet>
<servlet-name>tapestry</servlet-name>
<servlet-class>org.apache.tapestry5.TapestryFilter</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>tapestry</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>