0 Replies Latest reply on Dec 29, 2015 4:47 PM by vsek

    Picklist question

    vsek

      Hey out there. Using 3.3

      Got my pick list all working with exception of one thing. I cant seem to get the selected items on the screen to the backing bean. I can debug it aList getters/setters and get to this code in the backing bean. But the values are always an empty array list. No matter what I have selected in the actual screen. What am I missing? Do I need some more values in code below?

       

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

        xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"

        xmlns:ui="http://java.sun.com/jsf/facelets"

        xmlns:f="http://java.sun.com/jsf/core"

        xmlns:c="http://java.sun.com/jstl/core"

        xmlns:a4j="http://richfaces.org/a4j"

        xmlns:rich="http://richfaces.org/rich"

        xmlns:h="http://java.sun.com/jsf/html">

       

       

        <h:panelGrid styleClass="smallFont" columns="2"

        columnClasses="formGroup, formField, vertTop">

       

        <rich:pickList style="text-align: left;"  listsHeight ="270"    value="#{productDetailBean.selectedList}" var="selectedList" >

                    <f:selectItems value="#{productDetailBean.aList}"  />

                </rich:pickList>

        </h:panelGrid>

        <span class="buttonGroup">

        <a4j:commandButton

        action="#{OkViewAction.execute}"

        onclick="false"

        oncomplete="#{rich:component('genericPanel')}.hide()"

        value="OK"

        reRender="cl,st,pd:pickCC"

        limitToList="false"/>

       

        <rich:spacer width="3" />

        <a4j:commandButton onclick="#{rich:component('genericPanel')}.hide() " value="Cancel" immediate="true"/>

        </span>

      </ui:composition>