This content has been marked as final.
Show 2 replies
-
1. Re: noSelectionLabel issue with selectOneMenu
tausuahmed May 5, 2011 4:16 AM (in response to salski22)Hi,
One option is to discard noSelectionLabel and add an item to list with
select
label and with some value.Regards,
Tauseef -
2. Re: noSelectionLabel issue with selectOneMenu
y.elpyaz May 5, 2011 1:45 PM (in response to salski22)Hi I dont think this code works <s:selectItems value="#{reservation.locationListMap}" noSelectionLabel="Select ..." /> any way U can use <h:selectOneMenu converter="#{reservation.converter}"> <s:selectItems value="#{reservation.locationListMap}" var="location" label="#{location.locationName}" itemValue="#{location.LocationName}" noSelectionLabel="Select ..." hideNoSelectionLabel="true" /> </h:selectOneMenu > if location is an instnce of a class use appropriate values for s:selectItems attributes