Hi Neil,
There's PropertySelection and MultiplePropertySelection. I'd suggest you use
these. With these you need only one component for rendering select-box.
First you have to make sure you can provide IPropertySelectionModel for the
component. It has all available options for the selectbox. Very often it's
contructed from array of Enums, but it's easy to provide own implementation.
Then there's the selected option / option list (for multiple). And that's it!
Voil�!
Here's sample for PropertySelection.
--- begin myComponent.jwc ---
<component id="mySelect"
type="/net/sf/tapestry/form/PropertySelection.jwc">
<binding name="model" property-path="mySelectModel"/>
<binding name="value" property-path="mySelectValue"/>
</component>
--- end ---
myComponent.getMySelectModel() returns IPropertySelectionModel containing
options available. Then there's mySelectValue property where the selected
value is set. And if you need more complex select-component take a look at
Palette. These components are documented quite well in the Tapestry API
documentation also.
Hope this helped,
--
/ekimmo
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer