In this example we will create a list binding prefix to support array/list values directly in templates without needing to write getter methods.[[BR]]This is tested on Tapestry 5.0.14, it will most likely be a part of the framework in some way, but currently it isn't.[[BR]]

In this example we will create a list binding prefix to support array/list values directly in templates without needing to write getter methods.<<BR>>This is tested on Tapestry 5.0.14, it will most likely be a part of the framework in some way, but currently it isn't.<<BR>>

For example a chart link - similar to the chart example (["Tapestry5HowToCreateASimpleGraphComponent"]) on this wiki - can be used like this with the list binding prefix:

For example a chart link - similar to the chart example ([[Tapestry5HowToCreateASimpleGraphComponent]]) on this wiki - can be used like this with the list binding prefix:

In this example we will create a list binding prefix to support array/list values directly in templates without needing to write getter methods.This is tested on Tapestry 5.0.14, it will most likely be a part of the framework in some way, but currently it isn't.

Example: You have a product page, product/view, and you want to be able to compare the current product to a list of related products. So you write this in your template: