Removing dups from list

Hello
i am removing dups from a list by overwriting the equals method of the class. The equals method is checking for only one attribute...but i want to have another list with different elements from the list (another attribute)
class C has two main attributes, Color and Size. I want to have a list with different colors and another list with different sizes.
class C equals method:
public boolean equals(Object obj) {
     C drt = (C) obj;
     boolean bRet;
     if (drt.getColor().equals(this.getColor()) {
          bRet = true;
     else {
          bRet = false;
     return bRet;
}adding to list A
ListIterator li  = B.listIterator();
while (li.hasNext())
C celement = (C) li.next();
if (!A.equals(celement))
   A.add(celement);
}at this point list A consists of different (by color) celements. But what if i want to have another list to have different (by size) celements...?

The obvious way of getting a collection of distinct things is to use a Set. However you can't have multiple "equals()" methods. There is no inbuilt "Equivalator" analogous to a Comparator.
At the moment you are comparing a list with an element which can't be good.
One way or another you have to compare each thing with the list so far to see if it should be added. Maybe something like:import java.util.ArrayList;
import java.util.List;
public class Thing {
    private String color;
    private String size;
    public Thing(String color, String size) {
        this.color = color;
        this.size = size;
    public String getColor() {
        return color;
    public String getSize() {
        return size;
    public String toString() {
        return "[" + color + "," + size + "]";
    public static void main(String[] args) {
        List<Thing> theThings = new ArrayList<Thing>();
        theThings.add(new Thing("a", "1"));
        theThings.add(new Thing("b", "1"));
        theThings.add(new Thing("a", "2"));
        theThings.add(new Thing("b", "2"));
        theThings.add(new Thing("c", "3"));
        theThings.add(new Thing("d", "1"));
        List<Thing> colorList = new ArrayList<Thing>();
        List<Thing> sizeList = new ArrayList<Thing>();
        for(Thing thing :theThings) {
                // look for a color match
            boolean found = false;
            for(Thing test :colorList) {
                if(test.getColor().equals(thing.getColor())) {
                    found = true;
                    break;
            if(!found) colorList.add(thing);
                // look for a size match
            found = false;
            for(Thing test :sizeList) {
                if(test.getSize().equals(thing.getSize())) {
                    found = true;
                    break;
            if(!found) sizeList.add(thing);
        System.out.println("Color list: " + colorList);
        System.out.println("Size list: " + sizeList);
}

Similar Messages

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • UnsupportedOperationException Error while removing object from List

    Hi,
    I need to remove a set of objects from List if it contains similar objects as the other one.
    Follwing is the code snippet of the above scenario...
    List selectedPaxList = new ArrayList();
    TreeSet seatAssignedPaxlist= new TreeSet();
    selectedPaxList.add("1");
    selectedPaxList.add("2");
    selectedPaxList.add("3");
    seatAssignedPaxlist.add("1");
    seatAssignedPaxlist.add("2");
    if(selectedPaxList.containsAll(seatAssignedPaxlist))
    selectedPaxList.removeAll(seatAssignedPaxlist);
    If i do this in java program it executes fine without any error.But if I do the same in JSP I am getting the following error......
    java.lang.UnsupportedOperationException
    at java.util.AbstractList.remove(AbstractList.java:167)
    at java.util.AbstractList$Itr.remove(AbstractList.java:432)
    at java.util.AbstractCollection.removeAll(AbstractCollection.java:351)
    Plz... help me to resolve the issue

    java.lang.UnsupportedOperationException
    at
    java.util.AbstractList.remove(AbstractList.java:167)
    at
    java.util.AbstractList$Itr.remove(AbstractList.java:43
    2)
    at
    java.util.AbstractCollection.removeAll(AbstractCollect
    ion.java:351)
    That stack trace looks wrong to me.
    ArrayList overrides the remove method, so it
    shouldn't be using the method in AbstractList. That's what I thought, too. There is either something missing or it's not an ArrayList. In fact the javadoc of AbstractList.remove sais:
    "This implementation always throws an UnsupportedOperationException."
    So it really looks like another subclass is used.
    Also
    the object it is trying to remove is a list (from
    your exmaple it should be a String)
    I could be wrong.These are just the code references not the parameters, I think.
    -Puce

  • JList run time errors when removing items from list

    Hi there
    I am having trouble removing items from a JList. For a While it was working fine and now it outputs runtime errors everytime samething gets removed from the lsit
    Here is the code
    //declare
    public class Consumertab1gui extends JPanel implements ActionListener
         public static JList conList = null;
         private static DefaultListModel model = null;
    // Create a list with some items
    model = new DefaultListModel();
    conList = new JList(model);
    //set the size of cells in the list with the length of the string
    conList.setPrototypeCellValue("Lenght 1234567890");
    conList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    conList.addListSelectionListener(new ValueReporter());
    //set a scroll onto the list
    JScrollPane conScroll = new JScrollPane(conList);
    add(conScroll,c);
    //when the button gets pressed to drop the selected item the following code is called
    private void dropConsumer()
    int selItem=0;
    componentsV.comVRemove(conList.getSelectedValue().toString());
    selItem=conList.getSelectedIndex();
    System.out.println("No:"+(model.getSize()-1));
    System.out.println("S:"+selItem);
    remConList(selItem);
    dropCon.setEnabled(false);
    //which in turns calls this
    public void remConList(int pos)
         model.remove(pos);
    when the model.remove(pos) code is executed the following runtime errors are given:
    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
    at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
    at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1561)
    at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
    at javax.swing.DefaultListModel.remove(DefaultListModel.java:478)
    at Consumertab1gui.remConList(Consumertab1gui.java:38)
    at Consumertab1gui.dropConsumer(Consumertab1gui.java:58)
    at Consumertab1gui.actionPerformed(Consumertab1gui.java:46)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    can anyone spot any mistakes in the code or suggest possible resons as to why these run time errors occur?
    Thanks
    alexis

    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)The NullPointerException occurs at line 197, in the valueChanged method of your ValueReporter inner class. I have looked through your post several times but I don't see where you posted that method. Anyway, that is where you should look.
    PC&#178;

  • Help reordering or removing apps from list

    How can you reorder or remove apps from the list of apps you get to if you swipe to the left of The Hub? I can remove the apps from displaying messages in The Hub, but cannot reorder or removed(hide) them from the list ? It is hard to keep prying eyes from private emails, texts, bbms, with these quick links as is.

    You cannot "hide" apps that appear in the Hub, but you can eliminate the from being displayed in the Hub (and put them back later).
    Open the Hub with the swipe right, then select the three dots in the lower righthand corner. Choose Settings > Hub Management and turn off whatever you don't want to see displayed in the Hub. Just turn 'em back on later when you feel like it. 
    It won't stop prying eyes from simply opening BBM or Test Messages, but at least they won't be on display in the Hub when you're trying to demo the device. 

  • SDK J2 EE server remove it from list of programs which start with windows

    Hello there
    Since SDK J2EE 5 server takes many resources, I would like to be able to remove it from the list of programs which start with Windows XP PRO start up.
    How could I possibly do that?
    Thanks in advance

    Since SDK J2EE 5 server takes many resources,is it take more resource ?
    is it decrease your speed ?
    is it not allow another app or software to run ?
    if you say yes,
    then
    type msconfig in start->run
    click startup tab and deselect the corresponding checkbox
    or
    go to control panel -> administrator tools -> services -> select the service , then right click properties and select disable in drop down,
    or
    control panel -> add or remove programs -> select j2ee-xxx remove it

  • Open with.....removing apps from list?

    When I right-click and choose 'open with' on a picture for example, I get a huge great list of pre-sets to change the file too. Some of the icons/formats I don't recognise but I think they are a combination of Photoshop, and Flash, Fireworks etc file conversions.
    Is there anyway to remove these presets from the 'open with' list of apps? I've looked at Onyx to clear launcher options but this made no difference? Or does it have to be done in each application somehow?
    Cheers

    Solved this one myself eventually!
    It seems that if you have photoshop it creates a folder in the application folder called 'droplets'. These are shortcut links to the 'open with' menu. So if you have these shortcut options and want rid of them - then trash the droplets folder.

  • Is it possible to see list history (e.g: which user removed column from list)

    Hello there,
    I know it is possible to see version history of items and pages, but what about the lists itself?
    For example:
    Is it possible to see which user added/removed a column from a list?
    Is it possible to see which user changed a certain view from a list?
    Thanks in advance!

    There's an auditing event fired when a user modifies content types or columns in a list. To make use of this you'll need to enable auditing if it's not already enabled.
    I'm not sure about the view and I'm having trouble trying to find information about it because most of the documentation talks about VIEWing the audit reports. :)
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Removing children from List causes visual bug

    Hello,
    I'm new to Flex so I apologize if this is basic and trivial.
    I have a list that I'm using some databinding with some
    search results. After the initial search I need to clear out all of
    the children in the list before running the next search otherwise
    it just gets tacked onto the bottom. When I try running removeChild
    for all of the children nodes in the list it removes the items, but
    then does something to the visual display and leaves a giant gray
    box. I know that the new data is being loaded in as the scrollbar
    changes size to indicate that there are elements, but it's just all
    gray.
    Is there some sort of a re-draw function that needs to take
    place or is there an error with my method of clearing the
    contents?

    removeChild removes a DisplayObject from it's container.
    You seem to want to clean up the result list before you fetch
    new results.
    I assume you have the following:
    [Bindable]
    private var myList:ArrayCollection ;
    <mx:List dataProvider="{myList}" .../>
    Before you fetch your next set of results, clear myList.
    myList.removeAll() or whatever is appropiate.
    It is always best practice to manipulate the dataprovider for
    the visual
    controls. DataBinding will update the control as
    appropriate.

  • Removing WLCs from list in NVRAM for deployed LAPs

    Hi,
    Here is a question, which I really would like to have an answer on. I have been searching for this, and can not find any on this. I am up to the point where I start to think it is simply not possible.
    I would like to remove all existing WLCs from NVRAM in my LAPs. Simple, you may think, just boot it without registering and perform the command "clear lwapp private-config", and allthough this is through and I'm sure it will work, it would require me to organize about 300 LAPs to be shipped back to me so I can console into it and perform the command.
    Another thing I thought of was clearing the config from WCS, but I found this only clears the config and not the list of previously joined controllers stored in NVRAM.
    The background of my request is that we started out with WLCs back in code 3.1, and there it was recommended to have one mobility group if you wanted to have an anchor guest controller.
    Today, we are running 5.2 and the number of WLCs we have in place is 21 and growing.
    I believe that since we went to 4.2 we started having problems with LAPs sometimes registering to the wrong controller.
    We have been troubelshooting this a lot, and with the current discoverey mechanism, where the LWAPP discovery respons includes all controllers in the mobility group, and aso the previously joined/learned controlelrs, we do understand why it happens.
    So, the new updated design is to separate into different mobility groups and still make the necessary relationships to the guest anchor controller in the old mobility group. Works all fine. However, it did not resolve the problem of LAPs sometimes registering to the wrong controller.
    And it makes sense if you read the documents, the LAP has learned and stored about all the WLCs in NVRAM, so it can select any, if for some reason the primary fails (it only happens ofcourse when the primary fails).
    So, to ensure it will no longer rehome to another controller, I do need to remove all previuosly learned WLCs from NVRAM, but can not seem to find a way to do this without having console access, and I have about 300 LAPs in different countries, over appr. 30 locations.....
    Help!!!!!
    Thanks in advance for your thoughts on this,
    Leo

    Hi,
    Are you convinced this removes stored information in NVRAM for previously joined controllers. So far, my understanding was that only a factry default reset would do so, not the clear all config.
    I do understand the clear all config does remove entries for primary, secondary and tertiary controllers but I'm still in doubt if that would ensure the AP will not wander to previously joined controllers.
    Kind regards,
    Leo

  • Removing DVR from list that has been replaced

    Hello,
    I recently swapped out a set top box with a DVR that was failing. The set top box and DVR both work, but note that the prior unit still shows up in my list of available DVRs. How do I remove the prior device from my list or account?
    I do not see any options to delete the unit in settings or account areas on FIOS account.
    Thank you for any insight!

    It just takes a bit of time after it has been returned to be removed from your account.
    Just double-check bill to make sure you aren't being charged for it.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • TL11g & EJB3: One-to-Many problems with removing entity from list

    Hi,
    I posted this problem on JDev11g forum, but I hope I will get some information here as well.
    I have two entities based on tables in HR schema (Departments and Employees). Department has a list of employees. These are the annotations:
    @Entity
    public class Departments implements Serializable {
        @OneToMany(mappedBy = "departments", cascade = {CascadeType.ALL})
        private List<Employees> employeesList;
    @Entity
    public class Employees implements Serializable {
        @ManyToOne
        @JoinColumn(name = "DEPARTMENT_ID")
        private Departments departments;
    }On a test page, I have a master-detail tables that show all departments and employees in the selected department (drag&drop from data control), a button that removes selected employee from employeeList iterator, and a button that calls em.merge(department).
    The problem is that when I remove some employees from employeeList, on merge, the incoming entity, as well as the return result of the 'merge', are OK (the list doesn't contain the removed entities), but nothing is updated in the database, and no error is shown.
    Can anyone help me with this? I can send the test case if anyone is interested.
    Thanks,
    Pedja

    The transaction is Container Managed, but I did try with flushing the changes, but without success. Here is the log:
    [TopLink Finest]: 2008.08.06 04:31:25.431--ServerSession(27620915)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Execute query ReadAllQuery(model.Employees)
    [TopLink Finest]: 2008.08.06 04:31:25.431--ServerSession(27620915)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--reconnecting to external connection pool
    [TopLink Fine]: 2008.08.06 04:31:25.431--ServerSession(27620915)--Connection(21332891)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--SELECT EMPLOYEE_ID, LAST_NAME, COMMISSION_PCT, PHONE_NUMBER, SALARY, HIRE_DATE, FIRST_NAME, EMAIL, JOB_ID, MANAGER_ID, DEPARTMENT_ID FROM EMPLOYEES WHERE (DEPARTMENT_ID = ?)
         bind => [20]
    [TopLink Finest]: 2008.08.06 04:31:25.431--ServerSession(27620915)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Execute query ReadObjectQuery(model.Employees)
    [TopLink Finest]: 2008.08.06 04:31:25.431--ServerSession(27620915)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Execute query ReadObjectQuery(model.Departments)
    [TopLink Finest]: 2008.08.06 04:31:25.431--UnitOfWork(14721024)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@3001c6
    [TopLink Finest]: 2008.08.06 04:31:25.431--UnitOfWork(14721024)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@1f7d08a
    [TopLink Finest]: 2008.08.06 04:31:25.431--UnitOfWork(14721024)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@3001c6
    [TopLink Finest]: 2008.08.06 04:31:25.431--UnitOfWork(14721024)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Departments@1b21b91
    [TopLink Finer]: 2008.08.06 04:31:36.836--ServerSession(27620915)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--client acquired
    [TopLink Finer]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--TX binding to tx mgr, status=STATUS_ACTIVE
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Merge clone with references model.Departments@1c49e79
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@3001c6
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@aa10a9
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Departments@12c0836
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@aa10a9
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Departments@1b21b91
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@3001c6
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@1f7d08a
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Employees@3001c6
    [TopLink Finest]: 2008.08.06 04:31:36.836--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Register the existing object model.Departments@1b21b91
    [TopLink Finer]: 2008.08.06 04:31:38.711--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--TX beforeCompletion callback, status=STATUS_ACTIVE
    [TopLink Finer]: 2008.08.06 04:31:38.711--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--begin unit of work commit
    [TopLink Finer]: 2008.08.06 04:31:38.711--ClientSession(2685953)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--TX beginTransaction, status=STATUS_ACTIVE
    [TopLink Finest]: 2008.08.06 04:31:38.711--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--Execute query UpdateObjectQuery(model.Departments@776fc0)
    [TopLink Finer]: 2008.08.06 04:31:38.711--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--TX afterCompletion callback, status=COMMITTED
    [TopLink Finer]: 2008.08.06 04:31:38.805--UnitOfWork(631279)--Thread(Thread[HTTPThreadGroup-1,9,HTTPThreadGroup])--end unit of work commitThanks,
    Pedja

  • EJB3: One-to-Many problems with removing entity from list

    Hi,
    I have two entities based on tables in HR schema (Departments and Employees). Department has a list of employees. These are the annotations:
    @Entity
    public class Departments implements Serializable {
        @OneToMany(mappedBy = "departments", cascade = {CascadeType.ALL})
        private List<Employees> employeesList;
    @Entity
    public class Employees implements Serializable {
        @ManyToOne
        @JoinColumn(name = "DEPARTMENT_ID")
        private Departments departments;
    }On a test page, I have a master-detail tables that show all departments and employees in the selected department (drag&drop from data control), a button that removes selected employee from employeeList iterator, and a button that calls em.merge(department).
    The problem is that when I remove some employees from employeeList, on merge, the incoming entity, as well as the return result of the 'merge', are OK (the list doesn't contain the removed entities), but nothing is updated in the database, and no error is shown.
    Can anyone help me with this? I can send the test case if anyone is interested.
    Thanks,
    Pedja

    Hi,
    I have two entities based on tables in HR schema (Departments and Employees). Department has a list of employees. These are the annotations:
    @Entity
    public class Departments implements Serializable {
        @OneToMany(mappedBy = "departments", cascade = {CascadeType.ALL})
        private List<Employees> employeesList;
    @Entity
    public class Employees implements Serializable {
        @ManyToOne
        @JoinColumn(name = "DEPARTMENT_ID")
        private Departments departments;
    }On a test page, I have a master-detail tables that show all departments and employees in the selected department (drag&drop from data control), a button that removes selected employee from employeeList iterator, and a button that calls em.merge(department).
    The problem is that when I remove some employees from employeeList, on merge, the incoming entity, as well as the return result of the 'merge', are OK (the list doesn't contain the removed entities), but nothing is updated in the database, and no error is shown.
    Can anyone help me with this? I can send the test case if anyone is interested.
    Thanks,
    Pedja

  • Creative Cloud App remove Apps from list?

    Hey guys, just caught up on Encore not being part of CC due to moves towards live streaming and had added Premiere Pro CS6 Family App to the CC App list. I've chosen not to install Encore so I won't require PP CS6 listed, can I remove it?

    Manish-Sharma wrote:
    You can uninstall PP CS6 and still have Encore on your computer to use it.
    Hey Manish, thanks for your reply, I was going to install PP CS6 to get Encore but decided not to and wanted PP CS6 off the Desktop CC App list. PP CS6 has since been removed after restarting WIN by itself. I was thinking perhaps there was a manual way of removing unwanted App's from the list.

  • How to remove % sign from List of Values

    Hi ,
    I have shared list of values thats is based on SQL query. At runtime the select list default value is showing as "%". Can someone suggest how to remove % and replace with null (blank)
    Thanks
    Aali

    In ist of Values region, if you select display null as 'Yes', in 'null display value' area use space tab or type something like ' - Select-' to replace %. Or, choose Display null as 'No.

Maybe you are looking for

  • "CONNECT BY"-like query using XPath

    Greetings! The problem is as follows: I have a XML document whose main part contains a set of many subelements names "rasterFile". Each of this elements has an attribute "rasterRefId" which refers to another rasterFile element (to its id attribute).

  • Natd[218]: failed to write packet back (Permission denied)

    I have the following line appearing in my system log on my xserve running 10.4.6. Could anyone shed some light on what the error might be and if its something that we need to be concerned about. natd[218]: failed to write packet back (Permission deni

  • Report for counting transactions (entries) on accounts

    Does anyone know of a specific report that will give you the number of transactions or entries posted against a GL account (or types of acounts such as revenues) during a period of time.

  • Make a disater test on another machine

    Good afternoon, We would like to test our recovery procedures. We are using sap on a Solaris server with Oracle 10.2. We are going to restore our prod server (PS) on a new server (RS). RS has a different ip address than PS. RS has a different hostnam

  • Web Inspector window problem

    Hello, When I open Web Inspector using the menu Develop >> Show Web Inspector, the window open with a problem. To display correctly, click the "dock to main window" in the status bar, then click again on the same icon to separate from Safari. I think