I wasn't entirely sure it would work, just a guess. Anyone else know
of a better solution?

On Wed, May 28, 2008 at 5:36 PM, Chenini, Mohamed <[EMAIL PROTECTED]> wrote:
> Hi Andrew,
>
>
>
> I made the change you suggested, but 11 items are always shown (see below)
> when I click on down arrow even when I give different values to height.
>
>
>
> Am doing something wrong?
>
>
>
> <td>
>
>     <select jsfc="h:selectOneMenu" inlineStyle="height: 20px;" id="state"
> value="#{flowScope.previousQuoteBean.state}"
> onchange="onRatedStateChange();">
>
>
>
>
>
>
>
> Thanks,
>
>
>
> -----Original Message-----
> From: Andrew Robinson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2008 5:43 PM
> To: MyFaces Discussion
> Subject: Re: to limit the length of the drop down list in selectOneMenu in
> JSF
>
>
>
> 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.
>

Reply via email to