If you want to use it with the select component then there is no need to write your own selectmodel. Just provide an array of strings to the model parameter, e.g. <t:select model="literal:foo,bar,baz"...> or <t:select model="strings"...> where strings is an array or list in your page class.
Uli Am Fr, 26.09.2008, 12:32, schrieb Filip S. Adamsen: > Hi, > > Just implement org.apache.tapestry5.SelectModel. You can extend > org.apache.tapestry5.util.AbstractSelectModel when you do. > > -Filip > > On 2008-09-26 12:20, Andy Pahne wrote: >> >> I have a simple list of Strings that should be the source of a >> SelectModel. How do I create one? >> >> I had a look at >> http://wiki.apache.org/tapestry/Tapestry5SelectObject >> but it's outdated (before the T5 package name refactoring) and just >> looks to complicated for my simple purpose. Also I am not a great fan of >> "forking" core lib components and keeping them in touch with the current >> development. >> >> There must be an easier way, I think. >> >> >> Andy >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]