Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

values not getting removed from List<SelectItem>

user8696578Jul 22 2013 — edited Jul 24 2013

Hi ADF Experts,

The below is a remove functionlity which isn't working. Could you please help in this

public void removeSelectedValues(ActionEvent actionEvent) {

    // Add event code here...

    List<String> values = (List<String>)this.getPrp1().getValue(); //this has 3 values of type List<String>

           tempList = actualList; //this has 5 elements of <SelectItem> during debug its showing 5 elements. actualList and tempList is also of Type List<SelectItem>

          for (String location: values)

          {

            SelectItem si = new SelectItem(location);

            actualList.remove(si) ;//I am trying to remove but its not working<out of 5 elements I wanted to remove 3 elements>

          }

Thanks in advance

BISWA

JDeveloper 11.1.1.7.0 Version

This post has been answered by user8696578 on Jul 24 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2013
Added on Jul 22 2013
4 comments
744 views