You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Chenini, Mohamed " <MC...@geico.com> on 2008/04/10 15:46:33 UTC
to limit the length of the drop down list in selectOneMenu in JSF
Hello,
Is there a way to limit the length of the drop down list in
selectOneMenu in JSF. I added size="10" but it is not working. The
print screen is from the user (who want only 10 values to be displayed
when he clicks on the down arrow).
Thanks.
<td>
<select jsfc="h:selectOneMenu" id="state"
value="#{flowScope.previousQuoteBean.state}" size="10"
onchange="onRatedStateChange();" >
<f:selectItems
value="#{stateListLookupFacade.jsfStateListShortNamesWithSpecialMailingS
tates}"/>
</select>#{bundle.searchpre_state_label}
</td>
Thanks,
Mohamed
====================
This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.