-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes, it does help. Thanks.
I'm aware of the PropertySelection component, model etc, but I am wanting information re Select and Option just for the component reference (I'm creating those parts now). - From what I can see, the Select and Option elements are very very simple (hence the reason you really do, in reality, want to use PropertySelection). I'm just wanting to get clarification of my original example - that this would be a reasonable way to use just those two components. Regards, Neil Clayton On Tuesday 27 Aug 2002 4:25 pm, Kimmo Eklund wrote: > 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, - -- Neil (BTW: If you see weird text surrounding the message and you don't know what it is, don't worry, it's just my public PGP signature). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9bO1gLXcfQF3yrNoRAjlhAJ0RgosAP+jFQXgx53MuBmH40wDjrwCePrET oPDltnLd7lcECuEgtpiAEBg= =yeTR -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
