|
From: Sean A C. <se...@co...> - 2002-11-01 18:32:00
|
On Friday, Nov 1, 2002, at 08:58 US/Pacific, Nathan Dintenfass wrote: > Yes, what does an HTML SELECT have to do with a data descriptor?? OK, > I > should have said that the categoryPicker manifests itself as a form > widget > with an HTML SELECT. OK, I can see where you're going with this now (and you know I don't like that approach :) > <field name="type" > label="Type" > type="org.bacfug.modus.fields.picklist"> > <options> > <option value="normal" label="Normal"/> > <option value="special" label="Special"/> > </options> > </field> > > I have mixed feelings about it. When I had to build the > categoryPicker it > felt "dirty" -- I didn't want to have go build new field types every > time I > just wanted a discrete list to choose from for a given field. Hmm... I guess the conceptual question is: do you want the persistent implementation to be 0, 1, .., n (i.e., an integer) or a string? I can see how the 'simplicity' argument leans toward definition inline as a string. I don't really like it but I can't think of a better way off-hand... I'll give it some more thought. "Conform! Consume! Obey!" -- Mr Snaffleburger : http://www.matazone.co.uk/theotherside.html |