Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved bold headings into {code} title boxes; weakened the promise of more tutorials

...

A minimal Grid is very easy to add to the template:

Code Block
XML
XML
titlesrc/main/webapp/Index.tml (partial)

...

Code Block
XMLXML
  <t:grid source="addresses"/>

And all we have to do is supply the addresses property in the Java code:

Code Block
titlesrc/main/java/org/apache/tapestry5/tutorial/pages/Index.java (partial)

...

code
    @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.