Ok sorry; I haven not read your post carefully enough. In myfaces it
is a select one menu
(combo box).

The most easiest way is the one you suggested; add:
onchange="this.form.submit()" and the changeListener should be called.

regards,

Gerald

On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I have two listboxes, the second is empty. When I select in the
first one an item, I would like to fill the second one. Could someone
give me an eays solution how I can realize this.

      <h:selectManyListbox value="#{sell.assortments}" size="6"
immediate="true"
                        valueChangeListener="#{sell.assortmentChange}">
          <f:selectItems value="#{sell.assortmentChoice}" />
        </h:selectManyListbox></td>
      <td><h:selectManyListbox value="#{sell.categories}" size="6"
>
          <f:selectItems value="#{sell.categoryChoice}" />
        </h:selectManyListbox>


Urs



--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to