4 Replies Latest reply on Oct 8, 2010 6:18 AM by ilya_shaikovsky

    How to populate rigth side of a picklist form database

    wawanito

      hello,

       

      I'm using a richfaces picklist in a form. I display a list of elements in a selectItem that i get in a backing list in insert mode.

       

       

      <richickList id="myPickList" value="#{formBean.selectOptionList}">

      <f:selectItems value="#{formBean.selectItemList}" />

      </richickList>

       

      before insert

       

      right side     left side

      1

      2
      3
      4

       

      my choice( before recording)

       

      right side     left side

      1                      2
      4                      3

       

       

      But in update mode it get more complicated. Indeed, i want to display my choice such as it was reccorded, that is my list of element without my choice on the right side and my choice on the left side.

       

       

      I want to display my last choice in update mode

       

      right side     left side

      1                      2
      4                      3

       

      anybody has an idea ...