Ah ok, It depends on the type of LoV you're using. If you're using a static lov (<f:selectItem/>), then you have to use a binding for your selectOneChoice component to your managed bean. Then, in your method, you simply have to loops through the selectOneMenu's children until you find the right UISelectItem. IF you use a dynamic LoV, it's simpler, as you simply have to call the methods returning the list of values and loops through all returned SelectItem objects.
Regards, ~ Simon On 8/31/07, daniel ccss <[EMAIL PROTECTED]> wrote: > > Hi, sorry, yes the correct question is how to: > > loop through the SelectItem list until find the one with the selected > value to extract the description > > Thanks > > On 8/31/07, Simon Lessard <[EMAIL PROTECTED]> wrote: > > > > Hello Daniel, > > > > I don't really understand your question. Can you be a bit more specific? > > If I understand well though, you could either change the value property of > > your SelectItem object, or loop through the SelectItem list until you find > > the one with the selected value to extract the description. > > > > > > Regards, > > > > ~ Simon > > > > On 8/31/07, daniel ccss < [EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > How I can get the selected text, not the code, of a <h:selectOneMenu > > > component? > > > > > > thanks > > > > > > > >

