|
Util
This will propably be the largest of modules. General purpose utilities will live here. @InjectSelectModelBinding this annotation extends component with additional properties that represent SelectModel based on values in list it is bound to. The code is mostly based on approach described in Tapestry 5 HowTos. Bind annotation to a property: public class Countries {
@InjectSelectionModel(id = "countryId", label = "name")
private List<Country> countries;
}
Set model and encoder attributes to (field)SelectModel and (field)ValueEncoder respectively in <select> element: <select t:type t:id="country" model="countriesSelectModel" encoder="countriesValueEncoder"/> | ||||||||
► Sign in to add a comment