On Thu, 2004-07-29 at 07:09, Scott Yeadon wrote: > Hi, > > Is there a way of determining how many items are in a selection-list > widget via Java? I have list that is sourced from a cocoon pipeline, the > number of items then governs the initial size of a repeater so I need to > be able to get the number of items. GetValue returns only the selected > value and while there is a SelectionList attribute in the Field object, > it's protected so I can set but not get (and even if I could get it > there are no interrogative methods on the various SelectionList classes).
Indeed, none of this is currently possible. Such operations could be added, but then it would still depend on the selection list implementation if it could support them. For example, if your selection list is a dynamic selection list, finding out the number of items is impossible since the selection list data is only retrieved when the form is published. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
