myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Lee" <roger....@42objects.com>
Subject Getting Values from selectOneListbox
Date Tue, 12 Apr 2005 16:12:08 GMT
I populate a selectOneListbox with data from a table from a backing class;

<h:selectOneListbox id="loanSelectionListbox"
value="#{loanSelectionListDataModelBean.loanName}"
 
valueChangeListener="#{loanSelectionListDataModelBean.selectedLoanNameList}"
immediate="true">
                        <f:selectItems
value="#{loanSelectionListDataModelBean.loanNameList}" />
                    </h:selectOneListbox>

value = valueChangeEvent.getNewValue();

This give the element number select in the list 1-99 etc

How do I get the actual value text (Loan Name)?

Thanks,

Roger Lee



Mime
View raw message