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

    Problem with PickList

    jose4carlos

      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"
      converter="revendaConverter">
      <f:selectItems value="#{revendaBean.planoPagamamentoItens}"/>
      <a4j:support event="onlistchanged" ajaxSingle="true" immediate="true" reRender="revendas"/>
      </rich:pickList>

      and my Bean:

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

      List pl = planoPagamentoService.loadAll();
      for (PlanoPagamento tipoPlanoPagamento : pl) {
      planosPagamento.add(
      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?

      thanks.