ObjectUtil does not copy correctly

I'm using an ObjectProxy for a complex object containing arrays of objects. I bind a datagrid to the table and. notation to the fields. This set works very well, behaiving datagrid has properly, insertions and deletions work properly.
I want to have an undo function that will put the objectproxy object to its original state. So when I open the screen with the datagrid control, I do an ObjectUtil.copy () and use the latter if the user wants to undo changes. The problem is that the copy does not have a complete copy. In the object is an ArrayCollection of objects userdefined collection. These objects instead to be copied as their type are copied as mere objects.
The meathod of serialize uses the copy don't can not types of objects defined by the user.
Should I create clone or copy the methods for each type of object that I have?
If so should I just do ezxternalizable? How the copy objectutil will take these methods?
Thank you
Jeff

Unfortunatlly, you'll need to implement for each class that has complex objects, like he doesn't know how to deal with them. Your classes need to extend EventDispatcher and/or implement IExternalizable.
Then create methods methods, writeExternal and readExternal for all you must keep local variables. for example...
public void writeExternal(output:IDataOutput):void {}
output.writeUTF (msgString);
output.writeObject (anyObject);
output.writeInt (id);
}
public void readExternal(input:IDataInput):void {}
msgString = input.readUTF () as String;
anyObject = input.readObject () as Array;
ID = input.readInt () as int;
}

Tags: Flex

Similar Questions

  • I installed streets & trips 2011, seems to install fine, but can not open because the base register not copied correctly. Redone over and over again and more, still does not.

    Installation went well.  Try to open and run, message States registry settings not copied correctly, install it again.  A redone several times, same message several times, I tried the suggestions of support, nothing works.

    Hello

    Try editing a right-click on the setup.exe - then run as administrator

  • User profile does not load correctly, the user could not be connected.

    I tried to login to my account to administrator with my correct password and it says "user profile can be connected, user profile does not load correctly ' or something to that effect. Even when I login as a guest and enter my admin password on the user accounts settings and click ok, it won't let me access or modify accounts. Please help me, I am not able to access one of my documents or pictures of my guest account.

    ·                         Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the above does not work:

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    See you soon.

    Mick Murphy - Microsoft partner

  • When I try to open the 2010 Highway, I get this error: "your registry settings for this application no were not copied correctly."

    I am running Windows 7 Home Premium and use Microsoft Autoroute 2010. This used to open and run without any problem but now I get the message "your registry settings for this application were not copied correctly.  To correct these settings, restart the installation of this application where you originally installed it.  I did several times since the original disc without success.  I also did my best to remove all files of previous Highway before recharging.  Any help or suggestions please?

    original title: Highway 2010

    "Do right click used to contain run them as administrator but does not give the option now."

    The above is a bit worrying, does that apply to just highway or all the .exe?

    If you press the SHIFT key while you right click, if you see?

    Anyway have you tried to test with another Windows user to see if your profile is corrupt?

  • Firefox does not copy, will not stick. How can I fix it?

    Firefox does not copy itself in the menu dropdown. Will not accept paste material copied Mac email, password, Safari. Without copy and paste, the browser is USELESS.

    How can I fix it?

    Problem solved with 44.0.2. All right, thank you.

  • My phone does not work correctly

    My phone Bluetooth, Wi - Fi and GPS connection does not work correctly. Bluetooth and wifi have the low range of connection and can barely connect what either. GPS won't work at all, so I can't use it for direction more.

    Take it to an Apple store for diagnosis.

  • Yahoo mail does not load correctly

    Yahoo mail does not appear correctly. Does not add, or graphics. I uninstalled Firefox and reinstalled the latest version and it did not help. I started Firefox Add - ons disabled and this did not help. Yahoo email is the only site to be on. Gmail opens fine with Firefox and yahoo mail opens fine in Internet Explorer. It started tonight and nothing on my computer has been changed before you start.

    Nothing of what you have suggested will be / will work. I tried all your suggestions and much more, before you find what is the problem. Yahoo mail not properly opens with Firefox, if you try to open it with Yahoo messenger open. If anyone runs into this problem, close on yahoo Messenger and open your mail with Firefox alone.

  • I can't download to work - it does not copy the mp3 files to my location (as defined in tools/options) - it gives me a new window with a player - no dwnlo

    I am running windows xp sp2 and I put my site to dowload under (Tools/options), but when I select an MP3 file to download, firefox does NOT copy the file to my location of choice on my HD - instead, it opens a new window with a 'player' of fortune and starts to load the player with the MP3 file. The problem is that I have no idea where on my system, firefox has copied this file, so, I can't leave and come back later and read this MP3 file using winamp. I need to hear right then or lose - if I close this new window (with this puny little ' player'), then I lose the download, there where to put firefox on my PC (I have no idea where it is). It's all under firefox 25.0

    I also use FIrefox 12.0 on an older windows 2000 machine and that works perfectly - I can download any MP3 file, I want to, and downloads of firefox 12.0 (on win2k, sp4) to my location (on my HD), and it gives me the download window so I can watch its progress and have some control over break and resume , and, when it's done, the download window offers me the option 'open containing folder' so I can make sure that where I wanted. In other words, Firefox 12.0 on WIn2k, sp4 works better than firefox on winxp sp2 25.0! What gives? I went through and set up my options for XP just like I did with Win2k and everything looks good, but firefox 25.0 don't know just my chosen and always default place to give me fortune player and I am not able to actually copy the mp3 files on my hard drive - it's firerox almost unusable 25.0 since downloading mp3 files is a big part of my use firexfox - please help. I am not able to upgrade windows at this time, and since firefox 12.0 still works fine on win2k, I do not understand what has happened to firefox?

    Hello littleberry, you can click on the link that leads to an mp3 file or right click on the drive in firefox and choose to download the file like that...

  • I have an Apple computer, use the browsers Firefox and Safari, use Comcast for my email. Lately, when the Firefox, my email does not work correctly. Why?

    I have an Apple computer, use the browsers Safari and Firefox. I use Apple mail and Comcast to my email. Lately, in the case of Firefox, my email does not work correctly. I get a message "your server license has expired. While usually, I can access my emails, I can't delete the unwanted emails. This problem will not occur when I use Safari and Apple mail. Is this a problem of Firefox or Comcast? Do you know what license is expired?

    Hello

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

    Thank you.

  • Firefox seems to have recently developed seemingly random usually do not remember bookmarks, particularly when the pc does not stop correctly. Thank you

    Firefox seems to have recently developed seemingly random usually do not remember bookmarks, particularly when the pc does not stop correctly. Thank you

    If Firefox detects that the places.sqlite database is corrupted then Firefox can create a new database file and import bookmarks from a JSON backup that does not contain the most recent bookmarks (a new JSON backup is created when you run Firefox for the first time on a day), then you may lose the bookmarks in such a case.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • Since Firefox updated to 23, Hotmail does not display correctly

    Firefox itself up-to-date version 23 and since Hotmail does not appear correctly. I tried in IE and Chrome, and that's fine. I tried troubleshooting suggested, but nothing has worked.

    You can try the basic steps like these in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • I just downloaded Firefox 4.01 but it does not display correctly.

    I tried to upgrade Firefox 3.6.7 to Firefox 4.01 but when update is finished, the browser does not display correctly there is for example no address bar. Here is a screenshot: http://i.imgur.com/zBujK.jpg.

    I've downgraded to 3.6.17 and then installed Firefox 4.01 again but this does not solve the problem, or don't leave the browser and entering again or restart the computer.

    Try:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • Mac does not start correctly

    Hello, my Imac does not start correctly. When he plays the macsound boots but only half of the load of the boot. Then it restarts.

    What I have done:

    (1) unplug everything and held the power button for 10 seconds.

    (2) held the shift key--> after that I have a few bluish vertical lines

    (3) held cmd + option + P + R-> after I have a few vertical lines bluish, but bigger

    (4) held the c key

    (5) very slow D

    (6) CMD + V-> it's fast to read and to search for errors

    After all these different things, randomly I these bluish vertical lines and sometimes a few flickers on my screen.

    Can someone help me?

    If I need to reinstall I can recover my data?

    I appreciate your help and thanks for your help.

    I solved the problem! I googled a lot and I found that it was the GPU was down. Well, I searched and found the solution...

    I think that apple don't want to hear or see. But if you are a little technical or handyman, Cook your GPU in the oven. Yes, bake your GPU in the oven! See the link: https://www.youtube.com/watch?v=9vPM41ZmLos

    I warn you all, be very patient and very carefully, or you can destroy your beloved mac. The case may go to an apple store workshop.

  • My iMac does not start correctly. Instead, I just a gray screen. Safe mode starts, it's ok. No problem. So I ask what next step can I try? Thank you very much

    My iMac does not start correctly. Instead, I have a gray white screen. Safe mode starts, it's ok. No problem. But not in safe mode, only grey screen again.  So I ask what next step can I try? Thank you very much and sorry for my bad English.

    Reinstall El Capitan without erasing the drive

    Make sure that you have a current backup before continuing.

    HD recovery start:

    Restart the computer after the ring, press in and hold the COMMAND and R keys until the menu screen to appear.

    Repair

    When the recovery menu appears, select disk utility and press the continue button. Disk utility charges and select Macintosh HD entry indented from the list on the left.  Click the first aid tab in the toolbar... If disk utility reports any errors that have been corrected, then re-run first aid until no errors are reported. Wait until the operation is complete, then quit disk utility and return to the main menu. Select restart from the Apple menu.

    Reinstall OS X: Select reinstall OS X and click on the continue button.

    Note : You will need an active Internet connection. I suggest to use Ethernet if possible because it's three times faster than Wi - Fi and more reliable.

    In the future please post in the appropriate forum. Your question is not related to the developers forum. I will take care of moved it.

  • Satellite A300-1EH - windows installer does not work correctly

    Hello, this is my first post on this forum!

    My windows installer does not work correctly.
    What should do?

    Soryy, but I did not now much on computer systems.
    I have reinstall this installer?

    I'm waiting for your answers.

    > My windows installer does not work correctly.
    What do you mean exactly? You see a mistake? What exactly happens?
    Maybe your CD is scratched or damaged.

Maybe you are looking for

  • support for the improvement of a dc7800 sff with a QC 8400

    Hello I bought my HP DC7800 desktop from a broker who got a point on HP desktop computers get a bankruptcy in 09. Now I got a copy of Vista Business x 64 and 4 GB of ram DDR2 of Z OC-)

  • "Your browser does not support iframes, please use a different browser.

    I take an online course and this message appears when it is time for me to take my comments to the chapter. While I'm able to pass the test, I can not press 'continue', so I can't submit my test results. At the bottom of the control box it says "your

  • HP Pavilion G6-1241EA white screen problem

    I have a HP PAVILION 1241EA G6 and I just got a new motherboard and I installed it in my laptop. My laptop turns on but the screen is white. I looked at the wire and that's fine and I tried to connect it to other vga and hdmi monitors but nothing hap

  • Error code: 646 (same updates repeatedly offered)

    code646.This error applies to download Ko Ko 2277947 Ko 2251419 2279264.the downloads keep repeat every day for the last month or two. What should I do? Smiley

  • BI publisher integrated with OBIEE?

    Dear Experts,oracle.xdo.servlet.security.AdminUser cannot be cast to oracle.xdo.servlet.security.DirectoryUserBI publisher integrated with OBIEE, but I use security as a guarantee of Bi Publisher.I created a role in the bi Publisher and trying to ass