...
A minimal Grid is very easy to add to the template:
Code Block | ||||||
---|---|---|---|---|---|---|
|
...
Code Block | ||
---|---|---|
| ||
<t:grid source="addresses"/> |
And all we have to do is supply the addresses property in the Java code:
Code Block | ||
---|---|---|
|
...
@Inject private Session session; public List<Address> getAddresses() { return session.createCriteria(Address.class).list(); } |
...
We have lots more to talk about: more components, more customizations, built-in Ajax support, more common design and implementation patterns, and even writing your own components (which is easy!).
... but Tapestry and this tutorial are a work in progress, so stay patient, and More tutorials are planned, but for now check out the other Tapestry tutorials and resources available on the Tapestry 5 Documentation page page.