On Thu, 2004-01-29 at 19:45, Litrik De Roy wrote:Bruno, thanks for the quick reply.
All,
Does anybody know how to get access to the labels of a selection list when using Woody in combination with flow? When my 'country' selection list returns "BE" I would like to get the original label "Belgium".
The class Form has a method generateLabel() but it is used to generate SAX events.
And that will generate the label of the form, not of the selected item in the selection list.
My suggestion to do this would be to manage the selection list data in your own data structure (in the flow), set that on the selectionlist using the FlowJXPathSelectionList (there are samples on that), and afterwards you can then lookup the "BE" key in your original data structure to map it to its label.
With the current Woody API I don't think there are any other options.
I already have the data in an XML file that I connect to the selection list through the cocoon:/ protocol.
And other parts of my flow I already get the parser and do some xpath on xml data, so I know that it is possible to get to the label.
I was just hoping that there would be a more straightforward solution.
But if there isn't... no problem... flow is flexible enough to get what I need.
--
Litrik De Roy www.litrik.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
