One way to
do this is as follows:
Alternatively, you can do the same inside the
element, but the syntax will be
slightly different:
Do not forget that DateInput will expect to find an appropriately named page
property and that it should be placed inside of a Form component.
Test the project with custom components used on its pages, and everything should
work fine.
Congratulations! We have just created our first library of custom components. You
can now send it to your friends so that they can enjoy the results of your work!
Summary
One book like this cannot cover everything that comes with Tapestry 5. To discover
the power of AJAX and how easily it can be used from a Tapestry web application,
to learn how to integrate Tapestry with popular back end frameworks like Spring or
Hibernate, to see how readily Tapestry can be configured and extended to deliver
exactly what you want from the framework, another book would be needed, or even
more than one book.
However, we were able to cover quite a lot here. In particular, we have learned:
What Tapestry is, why it is special and how Tapestry 5 relates to the
previous versions.
Pages:
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297