Yes, that is <h:selectManyMenu />

The HTML control is:

<select size="5" multiple="true">
  <option value="1">1</option>
</select>

the "size" tells the browser how many options should be visible at one
time. So in this case, 5 will be displayed, and if there are more than
5, a scroll bar will be used.

A combo box can only ever select one:

<select>
  <option value="1">1</option>
</select>

A multiple select is always rendered as a list box (what you call
looking like a text area) by browsers. The drop down box is only
rendered if multiple is set to false (the default).

The selectOneMenu and selectManyMenu JSF controls just render a SELECT
element as shown above by default. You have to remember JSF controls
are simply wrappers that create HTML code.

If using the SELECT with multiple set to true, you can use the CSS
height attribute to override the size to get the height that you want.

Here are the docs on the selectManyMenu:

http://myfaces.apache.org/impl/tlddoc/h/selectManyMenu.html

On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>
>
> ok but i have a long list, and it's not eazy to  have all choices..i thinks
> that it exists a select box like <h:selectOneMenu/>  with possibility to
> selet many items with the CTRL key..
>
>
>
> Andrew Robinson-5 wrote:
> >
> > That is what h:selectManyMenu is. What HTML control are you trying to
> > produce?
> >
> > A select box with multiple selection enabled is just a control with a
> > border with one line per option tag, so it looks like a text area.
> >
> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >>
> >> But I'd like to a get  multiple select ..
> >>
> >>
> >>
> >>
> >> Andrew Robinson-5 wrote:
> >> >
> >> > <h:selectOneMenu />
> >> >
> >> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> sorry i talk about combo list ..
> >> >>
> >> >> I'd like to use standard components but i dont have the render that i
> >> >> want..
> >> >>
> >> >> with
> >> >> <h:selectManyMenu/> i dont get a select box but  thing like text area
> >> >> with
> >> >> values to select..
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Bruno Aranda wrote:
> >> >> >
> >> >> > Sorry, then I do not know what a "cambo" list is. I was thinking
> >> that
> >> >> > you were refering to a "combo" list, which for me is what the
> >> >> > selectManyMenu does - a drop down list that allows multiple
> >> selection.
> >> >> > Can you explain what a cambo list is?
> >> >> >
> >> >> > Cheers,
> >> >> >
> >> >> > Bruno
> >> >> >
> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> the standard selectManyMenu render is not like a cambo list..
> >> >> >> see  the render ont the right selectManyMenu, on the left
> >> >> >> selectManyListBox
> >> >> >>
> >> >> >>
> >> >> >> http://www.nabble.com/file/p12350965/debug.jpg
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Bruno Aranda wrote:
> >> >> >> >
> >> >> >> > What about the standard h:selectManyMenu?
> >> >> >> >
> >> >> >> > Cheers,
> >> >> >> >
> >> >> >> > Bruno
> >> >> >> >
> >> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >> helloo guys;
> >> >> >> >>
> >> >> >> >> Im struggled to find a useful JSF component that looks like a
> >> cambo
> >> >> >> but
> >> >> >> >> with
> >> >> >> >> a multiple choice possibility; the myfaces or tomawahk
> >> >> >> selectManyListbox
> >> >> >> >> can' be rendered as well as a cambo list..
> >> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >> >> >> >>
> >> >> >> >> do you have any solution for select many choice on a cambo
> >> list..?
> >> >> >> >>
> >> >> >> >> thanks a lot..
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >> >> >> >> Sent from the MyFaces - Users mailing list archive at
> >> Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352428
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to