use a skin or set inlineStyle="height: 20ex;" on the select one
choice. AFAIK the "size" attribute cannot be set.

On Tue, May 27, 2008 at 7:01 AM, Chenini, Mohamed <[EMAIL PROTECTED]> wrote:
>
>
> Hello ,
>
>
>
> Could you, please, help on the following:
>
>
>
> 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.jsfStateListShortNamesWithSpecialMailingStates}"/>
>
>    </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.
>
> ====================
> 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.
>

Reply via email to