1 Reply Latest reply on May 5, 2008 4:29 PM by Miguel Lima

    Problem with PickList

    José Carlod Silva Newbie

      Hello, I have problem with picklist, this is my page xhtml:

      <rich:pickList value="#{revendaBean.planosPagamentoSelecionados}" id="PlanosPagamento"
      onlistchanged="true" required="false" copyAllControlLabel="Inserir Tudo" copyControlLabel="Inserir"
      removeAllControlLabel="Remover Tudo" removeControlLabel="Remover"
      <f:selectItems value="#{revendaBean.planoPagamamentoItens}"/>
      <a4j:support event="onlistchanged" ajaxSingle="true" immediate="true" reRender="revendas"/>

      and my Bean:

      public List getPlanoPagamamentoItens() {
      List planosPagamento = new ArrayList();

      List pl = planoPagamentoService.loadAll();
      for (PlanoPagamento tipoPlanoPagamento : pl) {
      new SelectItem(tipoPlanoPagamento.getCodigo(), tipoPlanoPagamento.getDescricao())

      return planosPagamento;

      my problem is the object became null, anyboady has the problem with picklist? I need to pass into coverter or no, before to save?