9 Replies Latest reply on Feb 16, 2012 11:23 PM by sanjeevim

    List Shuttle Problem

    P18Mar ch ;) Newbie

      Hello illya Solve list shuttle problem

        • 3. List Shuttle Problem
          P18Mar ch ;) Newbie


          • 4. List Shuttle Problem
            P18Mar ch ;) Newbie

            But there is no any jsf /Xhtml file for listShuttle

            Please help me

            • 6. List Shuttle Problem
              P18Mar ch ;) Newbie

              Your solution not satisfied me.

              After applying hashcode and equal code in VO ,

              it give me errorr

              "Arraylist not writable"

              • 7. List Shuttle Problem
                P18Mar ch ;) Newbie


                This link I have already got.

                But I think there is problem in my VO

                • 8. Re: List Shuttle Problem
                  sanjeevim Newbie

                  Hi All!


                  Can u post the code for listshuttle with bean.class file..

                  i don't have bean class file..

                  can u tell me how to create a listshuffle in jsf ?

                  • 9. Re: List Shuttle Problem
                    sanjeevim Newbie

                    Dear All,



                    I have done the "ListShuttle" Components.I have aatached the source codes.




                    .XHTML FILE


                    <?xml version='1.0' encoding='UTF-8' ?>

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











                    <link href="../../css/main.css" rel="stylesheet" type="text/css" />


                    .pic {

                        margin-bottom: -4px;

                        margin-right: 2px;




                    <body class="contentBackground">

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







                              <t:saveState value="#{collapsiblePanelBean}" />


                                        <h:form id="createProposal">


                                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">



                                                                                <table width="95%" border="0" cellspacing="0" cellpadding="0"



                                                                                                    <td width="98%" align="left"><t:collapsiblePanel

                                                                                                                        id="pedDetails" value="false" title="testTitle"


                                                                                                                        <f:facet name="header">

                                                                                                                                  <t:div styleClass="panelSection">



                                                                                                                                                                <td class="panelTitle"><h:outputText

                                                                                                                                                                                    value="PED Details" /></td>

                                                                                                                                                                <td class="panelImage"><t:headerLink immediate="true">

                                                                                                                                                                                    <h:graphicImage value="../../images/downarrow.gif"

                                                                                                                                                                                              alt="" rendered="#{test2collapsed}" />

                                                                                                                                                                                    <h:graphicImage value="../../images/uparrow.GIF"

                                                                                                                                                                                              alt="plusImage" rendered="#{!test2collapsed}" />






                                                                                                                        <table border="0" width="100%" id="table2" cellspacing="1"

                                                                                                                                  cellpadding="3" bordercolor="#ffffff"

                                                                                                                                  style="border-collapse: collapse">



                                                                                                                                                      <fieldset align="center">

                                                                                                                                                                <table width="100%">



                                                                                                                                                                                    <td colspan="3"></td>

                                                                                                                                                                                    <td class="panelData" colspan="3"><rich:listShuttle


                                                                                                                                                                                                        targetValue="#{pedBean.lista2}" var="items"

                                                                                                                                                                                                        listsHeight="250" sourceListWidth="300"


                                                                                                                                                                                                        sourceCaptionLabel="List of PED"

                                                                                                                                                                                                        targetCaptionLabel="Available PED">


                                                                                                                                                                                                                  <h:outputText value="#{items}" />
























                    .JAVA FILE



                    package com.starhealth.common;



                    import java.util.ArrayList;

                    import java.util.List;



                    import javax.faces.bean.ManagedBean;

                    import javax.faces.bean.RequestScoped;



                    @ManagedBean(name = "pedBean")


                    public class PedBean {



                              private List<String> lista1;

                              private List<String> lista2;




                               * Default Constructor


                              public PedBean() {



                                        lista1 = new ArrayList<String>();

                                        lista2 = new ArrayList<String>();



                                        lista1.add("Ischaemic Heart Disease");


                                        lista2.add("Diabetes Mellitus");

                                        lista2.add("Eye Disorder");






                              public List<String> getLista1() {

                                        return lista1;




                              public void setLista1(List<String> lista1) {

                                        this.lista1 = lista1;




                              public List<String> getLista2() {

                                        return lista2;




                              public void setLista2(List<String> lista2) {

                                        this.lista2 = lista2;




















                    Happy Coding...



                    Sanjeevi M


                    Senior Software Developer