« Return to Thread: using AddRemove compenent with jpa

using AddRemove compenent with jpa

by anas.basso :: Rate this Message:

Reply to Author | View in Thread

hi, i want to use addRemove component, and i have a problem to get selected items:



List<DomCRC> doms = null;

        DomCRCDao domDao= new DomCRCDao();





        Iterator iterator= domCrcSelectList.getSelectedItems(); //domCrcSelectedList is the AddRemove Compenent







 



        while(iterator.hasNext()){



            long idDom= ((Integer)iterator.next()).longValue();



            doms.add(domDao.findDomCRC(idDom));

            doms.add((DomCRC)iterator.next());

        }





I'm stuck because of that, plz help




 « Return to Thread: using AddRemove compenent with jpa