3 Replies Latest reply on Jun 17, 2012 2:46 PM by please.accept.this.goddamn.nam

    Rich Faces 4.1.0 picklist - accessing the target values

    please.accept.this.goddamn.nam

      Hi all.  I've posted my question in stackoverflow but have had no response.  I'm hoping that I can post a link to my question here.

       

      http://stackoverflow.com/questions/10963935/rich-faces-4-1-0-picklist

       

      If someone could please look at the code and perhaps tell me where I've gone wrong so that I can use employeeBean.target later on in my program as a variable in other beans.

      I hope I've been clear.  Please ask me for more clarification if you need it.

       

      Regards,

      Rick

        • 1. Re: Rich Faces 4.1.0 picklist - accessing the target values
          jpapouse

          It looks fine on the first look. Is there any error in container's log when the pickList is submitted?

          • 2. Re: Rich Faces 4.1.0 picklist - accessing the target values
            please.accept.this.goddamn.nam

            There is nothing in the logs.  I must be doing something wrong here.  In the code below, I should be able to display the selected values, but it's blank.

             

             

            {code:xml}

            <rich:panel style="width:560px;">

                            <h:form>

                                <rich:pickList value="#{employeeBean.target}" var="emp" id="picklist"

                                               sourceCaption="Available" targetCaption="Selected"

                                               orderable="false"  converter="employeeConverter" onchange="submit()">

                                    <f:selectItems value="#{employeeBean.source}" var="employee" itemValue="#{employee}"/>

                                    <f:converter converterId="employeeConverter" />

                                </rich:pickList>

                            </h:form>

                            jobcardBean bean = #{employeeBean.target}

                        </rich:panel>

            {code}

             

            Here is an example of what I'm talking about:

             

            picklist.png

            • 3. Re: Rich Faces 4.1.0 picklist - accessing the target values
              please.accept.this.goddamn.nam

              I managed to solve the problem.  I posted my solution on stackoverflow.  Thank you for your assistance.