DataTable retrieves false (old) information (sometimes problem)

I've been scratching my head for days now about a problem I'm experiencing with a datatable showing me old information.
I have a simple table which stores Clients
clientid serial (auto increments)
client char This stores the name of the client.
I have a dataTable as below:
              <h:dataTable id="clientTable" rows="10"
              rowClasses="list-row-odd,list-row-even"
              value="#{Client.listClients}" var="item"
                    binding="#{Client.data}" >
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.tbl_no}" />
                        </f:facet>
               <h:outputText value="#{item.no}" />
                    </h:column>
              <h:column>
               <f:facet name="header">
                   <h:outputText value="#{msg.tbl_name}" />
               </f:facet>
               <h:outputText value="#{item.client}" />                         
              </h:column>
              <h:column>
               <f:facet name="header">
                   <h:outputText value="#{msg.tbl_action}" />
               </f:facet>
                        <h:commandLink id="edit" action="#{Client.editClient}">
                            <h:outputText value="#{msg.tbl_edit}" />
                        </h:commandLink>
                        <h:outputText value="#{msg.tbl_seperator}" />
                        <h:commandLink id="del" action="#{Client.delClient}">
                            <h:outputText value="#{msg.tbl_del}" />
                        </h:commandLink>                       
              </h:column>
          </h:dataTable>Here are the relevant parts of the Client (backing bean) class
    public List getListClients(){
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();
     List result = session.createQuery("from ClientBean").list();
        for (int i = 0; i < result.size(); i++){
            ClientBean clientbean = (ClientBean) result.get(i);
            clientbean.setNo(i % 10);
     return result;
    // Editing Client
    public String editClient(){
        ClientBean selectedClient = (ClientBean) this.getData().getRowData();         // Get the selected item from dataTable
        FacesContext ctx = FacesContext.getCurrentInstance();                               // Get the Faces Context
        ctx.getExternalContext().getSessionMap().put("EditClient", selectedClient );    // Save item as sessionmap
        return "edit";
    // Save the edited item.
    public String saveEditClient(){
        ClientBean clientbean = (ClientBean)JSFUtil.getManagedObject("EditClient"); // Get the Session mapped item
         * Now we must rename the directory if it exists
         * Will require a valuechanger method on the Client text box so we can get the original Client Name.
        if(oldClient == null){
            // Nothing has changed.
            return "cancel";
        Settings settings = new Settings();
        File clientSourceDir = new File(settings.getDest() + "/" + oldClient.toLowerCase());
        File clientDestDir = new File(settings.getDest() + "/" + clientbean.getClient().toLowerCase());
        // Move the file accross.
        boolean success = clientSourceDir.renameTo(clientDestDir);
        if (!success){
            System.out.println("Failed to copy");
            return "cancel";
        /** Now commit to the database */
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();    // Create the session
        session.beginTransaction();                                                 // build a transaction
        session.merge(clientbean);                                                  // Save the current object.
        session.getTransaction().commit();                                          // Commit this to the database
        return "success";
    }Here is my edit JSP file:
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<f:loadBundle basename="pdfcat.bundle.messages" var="msg" />
<!-- For the custom component, must match what's in the WEB-INF/components.tld file. -->
<%@ taglib prefix="jcr" uri="http://www.pais.com.au"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<link href="../css/pdfcat.css" rel="stylesheet" media="screen" />
<script language="JavaScript" type="text/javascript" src="../js/form.js" ></script>
<html>
    <f:view>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><h:outputText value="#{msg.client_title}" /></title>
        </head>
        <body onload="document.getElementById('form_input:client').focus();">
            <div id="headingback">
                <div id="heading"><h:outputText value="#{msg.client_edit_heading}" /></div>
            </div>
            <!-- Custom component for Clientalog Navigation menus. -->
            <jcr:catnav />
            <h:form id="form_input">
                <!-- Get the label from bundle/messages.properties -->
                <h:outputText value="#{msg.client_form_client}" />
                <!-- Create a Text field value linked to the ClientBean -->
                <h:inputText id="client" valueChangeListener="#{Client.clientChangeListener}" value="#{EditClient.client}" required="true" />
                <!-- Any error messages go here. -->
                <h:message for="client" errorClass="err" />
                <!-- Create a submit button. -->
                <p>
                    <h:commandButton value="Submit" action="#{Client.saveEditClient}" />
                    <h:commandButton id="btn_cancel" value="Cancel" action="cancel" immediate="true" />
                </p>
            </h:form>
     </body>
    </f:view>
</html>To test I do the following:
First I click on my Edit button for the item I want to edit, I change the name of the client and hit the submit button, this returns to my dataTable listing. Now I leave the page there for about 5 minutes, then reload the page and it shows me the old value. It's not showing me the new value which is in the database for that one item I changed, then if I refresh sometimes it will show me the correct value and sometimes not! I hate sometimes problems there always a pain.
It's like there are two objects for that one item entry and the dataTable gets confused and just picks one of them (randomly).
Am I on the right track here?
Can anyone shed some light on this problem and a possible solution?
I'm using JSF 1.1 RI, hibernate 3, postgres 7.4 database, netbeans 5.5 on a FreeBSD 6.2 machine.

Just spotted you are having connect and disconnect problems with HH2.
Short answer:
Try this workaround; despite my own scepticism when first advised about it, this will fix both wifi and ethernet problems; the fact that your HH2 will not connect to your wifi and/or your ethernet connector is related to the HH2’s acknowledged problem with its DHCP table.
Access the Hub and set your wifi channel to non-automatic and select Channel 11.
Save the settings and re-boot the HomeHub and your PC.
Check your performance and that your wifi and/or ethernet connection is working normally, if this works you are OK, if not repeat the cycle and choose, in turn, Channels 9 and 1.
As your line speed is under-performing, it is now very important let the HH run very specifically for the training period uninterrupted (whether you believe that to be 72 hours, five days or ten days is for you to decide). I stress, do NOT reboot or disconnect the HH during that period to enable the exchange and it to establish the optimum speed for the line (during that period you may observe the HH resetting itself during renegotiation - that is normal).
Long answer:
See my post of22 Sept 2011:
BT Failure & Sanctioned Workaround for HomeHub V 2.0 A
Good Luck
+++###+++
If you feel the problem is solved, please don't forget to come back and confrm the fix or post any other solution. It helps those who really need it to judge whether it works or not.
Also, mark the thread solved

Similar Messages

  • TS4009 I just downloaded ios5 with the iCloud and I am not able to open iBooks or pages which  has my store sold information that I'm OT angle to receive any longer how can i get my old information back please?

    I have downloaded with iCloud and Icahn not retrieve my old information that. Was stored in page sand I books.when I tap on the app it does not do anything .how can igetmy information that was stored previous before I added this new feature?

    This is very serious. Your computer got infected with ransom malware, Cryptowall.
    Go here for further info.
    CryptoWall 2.0 Anything Good about Buying you Keys? - General Security
    CryptoWall and DECRYPT_INSTRUCTION Ransomware Information Guide and FAQ

  • HT201342 how can I retrieve my old files on important  and documents?informations

    How can I retrieve my old files on important documents and informations?

    Contacts and calendars are designed to be synced with a supported application on the computer or a cloud service like iCloud, Google, or Exchange.
    Has the device been used as designed?  If so, simply re-sync them.
    Did you actually allow the device to finish restoring after installing the update?

  • I dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me

    i dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me i dont want to lose my village, i have spent my money on that game to much. hmmm

    thanks mate, but the problem is im using different apple id now, and after about 1 year play coc and today i want to link the village , suddenly coc said that
    thats mean im playing this village with different apple id and it not saved. and the problem is i dont remember the first apple id and password that i use first time to download this game. hmmm it was so confusing, why coc and game center just make this thing saved with a new game center account.

  • [Forum FAQ] Why can't I retrieve Free/Busy information

    Free/Busy information is a feature of Microsoft Outlook that allows you to see when others are free or busy so that you can efficiently schedule meetings. You can use Microsoft Outlook to publish Free/Busy information to any server
    your and your coworkers have read/write access to. However, in some cases you’ll notice that you can’t retrieve Free/Busy information correctly from Outlook. You can try the below methods to troubleshoot and get the Free/Busy information again.
    Since most users who often use this feature are using Exchange, all the information in this content is only based on Exchange.
    General troubleshooting methods:
    Method 1: Start Outlook using the ‘/cleanfreebusy’ command line switch
    Method 2: Logon OWA to see if the Free/Busy information shows correctly
    Method 3: Check the user’s Permission Level when only one user’s Free/Busy information can’t be displayed
    Other causes
    Autodiscover has not been setup correctly
    Updates
    Here are the detailed steps and explanation of each method and cause.
    Method 1: Start Outlook using the ‘/cleanfreebusy’ command line switch
    With the ‘/cleanfreebusy’ switch, it will clear and regenerate free/busy information when Outlook starts, sometimes this process fixes the problem that Free/Busy information doesn’t display correctly, and this is always the first thing we should try when
    we can’t get the Free/Busy information from Outlook.
    This switch can only be used when you are able to connect to your Microsoft Exchange server.
    To start Outlook using the switch, we can press Win Key +
    R to start Run, type ‘outlook.exe /cleanfreebusy’ in the blank box, then press
    Enter.
    Please note since Outlook 2013 only uses the availability service which is connected to Autodiscover, the command line switch ‘/cleanfreebusy’ has been removed as well as the associated code so that Outlook 2013 will not recognize this
    command.
    Method 2: Logon OWA to see if the Free/Busy information shows correctly
    If you are using Cached Exchange Mode in Outlook and having trouble getting the Free/Busy information, please logon OWA, or switch to Online Mode to see if the Free/Busy information shows correctly.
    If the Free/Busy information shows correctly on OWA or in Online Mode, this problem may be caused by the Outlook Data File(.ost) corruption, which leads to the sync failure. Therefore we should exist Outlook, browse to the Data File and rename it to “.old”.
    The next time Outlook starts, it will regenerate a Data File to sync and we can check if the Free/Busy information can be retrieved.
    The location of the Data File can be found from File tab ->
    Account Settings -> Account Settings ->
    Data Files tab. (Outlook 2010 and Outlook 2013)
    Or Tools menu -> Options ->
    Mail Setup tab -> E-mail Account -> Account Settings window ->
    Data Files tab. (Outlook 2007)
    If on OWA it displays fine but doesn’t show the information correctly in neither Cached Exchange Mode nor Online Mode, it may be caused by the firewall or anti-virus settings, disable them to verify if they caused the problem.
    Method 3: Check the user’s Permission Level when only one user’s Free/Busy information can’t be displayed
    When a user has set his Calendar Permission to None, other people will not be able to see his Free/Busy information. When we notice that we can get most people’s Free/Busy information but fail to get one specific person’s, please consider
    to check his Calendar Permission:
    In that user’s Outlook, right click on his default Calendar, click Properties, select
    Permissions tab.
    We need to at least switch the Permission to Free/Busy time to get his Free/Busy information correctly.
    Other cause 1: Autodiscover has not been setup correctly
    From Outlook 2007, Outlook uses Autodiscover to get the Free/Busy information. Once Autodiscover has not been configured properly, the Free/Busy information may not display correctly. If you are also seeing issues with Out of Office assistant, we may assume
    that you haven’t correctly setup Autodiscover, since these two symptoms are common when Autodiscover is not configured correctly.
    To verify that, please test Outlook Autodiscover Connectivity:
    http://technet.microsoft.com/en-us/library/bb123573.aspx
    We can also learn Configure Exchange Services for the Autodiscover Service from:
    http://technet.microsoft.com/en-us/library/bb201695.aspx
    Since Autodiscover Service is more Exchange related, we need to seek Exchange support and post the question in Exchange forum:
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?category=exchangeserver
    Other cause 2: Updates
    Although Updates from Microsoft do no harm to the system for most of the time, the updates sometimes can mess things up.
    Outlook 2013 November 2013 security update once became the culprit that caused some users not able to retrieve Free/Busy information from calendar scheduling. This occurs because Autodiscover fails for Exchange 2007 configurations. So in fact, this also
    refers to the previous reason, Autodiscover is corrupted.
    The fix for the issue above has been released:
    http://support.microsoft.com/kb/2850061/en-us
    Once you have some issues after updating and doubt it’s an update issue, you can always come to our forum to ask if there’s a recent update which causes the problem, we will be happy to support you. If a fix hasn’t been released yet, we suggest you uninstall
    the suspicious ones from Control Panel -> Programs and Features ->
    View installed updates to verify which caused the problem, also as a workaround.
    Summary
    The reason that we can’t get the correct Free/Busy information can vary. If you find it doesn’t work even after several general troubleshooting steps, please consider it’s Autodiscover related. For anyone who comes up against the issue that Free/Busy information
    can’t be retrieved, please feel free to visit Outlook IT Pro Discussions from the URL:
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook, we will be glad to help you.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    You should be charged, but that confirms the account.  Same behavior with the app store...have to give login info evem for free downloads.

  • Retrieving free/busy information from the server takes very long time

    Hello, we are running Outlook 2010 32-bit in Windows 7 64.bit, and  have encountered a strange problem, whenever we want to book
    a resource (i.e. conference room) from Scheduling assistant, it takes very long time, sometimes even more than a minute to see the utilization of the room, it being stuck at "Updating schedule information. Retrieving free/busy information from the server"
    The interesting thing is that most newly deployed PCs exhibits this same behavior, while older machines with basically the same setup gets the availability information almost immediately.
    It is unclear whether this is a server setting or desktop issue, as all new Windows 7/Outlook machines that are deployed from the WDS-server exhibits the same slow behavior.
    Please advise any troubleshooting steps to investigate the very slow retrieval lookup of free/busy information from the Exchange server.

    Hi,
    Does this issue occur on OWA?
    If no, it means the issue is mainly related to the Outlook client.
    Regards,
    Simon Wu
    TechNet Community Support

  • Contacts reverting to old information

    I recently replaced my Iphone with a new one. When I synced with Itunes everything worked fine. However, lately for some odd reason Contacts will sync outdated information thru Mobile Me. For instance yesterday I saved a recent call on my Iphone as new information for an existing client. This should have uploaded to Mobile Me and then also been added to my address book on my laptop. However, the next day the information is not saved and old information is present in all three locations. Idisk, Address Book, Iphone. This has happened on several contacts.
    Any thoughts on how to fix this?

    If you are getting a conflict resolution dialog saying Entourage and Address Book have a conflict, this means you enabled Sync Services via Entourage preferences. When syncing iPhone contacts and calendar events with Entourage, Sync Services must be enabled via Entourage preferences, which keeps the Entourage address book and calendar synced with the Address Book and iCal, which the iPhone is actually synced with when syncing iPhone contacts and calendar events with Entourage via the iTunes sync process.
    I believe your problem lies with having Sync Services enabled via Entourage preferences, which is syncing the Address Book on your Mac with the Entourage address book.
    Disable this via Entourage Preferences.
    Follow this by editing your contacts in the Address Book on your Mac. After you get the contact info corrected with the Address Book on your Mac, under the Info tab for your iPhone sync preferences below the Advanced section, select Contacts for replace info on this iPhone. Select Apply followed by a sync.

  • Old user id problem

    i backed up my iphone 5 to icloud before getting replacement phone. When i tried to restore my iphone my old user id poped out and it keep asking me the password for user the dose not exist anymore ( i have new user id). Now i have 2 problems that one of them is prity easy the other is seriouse. 1. i need to change my new user id in icloud ( found instructions on youtube will have to delet existing id and to proceed with the new one. 2. Is my back up stores with old id that i can not access or with my regular id that im suing for last 2 years? ( it is the same profile just email/user id was changed from yahoo to gmail.)

    I also have this problem. I changed my icloud user id on my computer awhile back because my old email account is defunct. Now I want to sign into icloud on my phone but it won't let me because it keeps asking for the password of the old account. I tried to delete it but it tells me to turn off find my iphone. When I try that it asks me again for the password of the old account. I tried to retrieve the old password of the old account but it seems it is not on file. How can I rectify this problem?

  • I can't seem to retrieve my old email from an old iMac

    My old iMac is no longer connected to the internet. I want to retrieve my old email files as I had problems trying to transfer this over to my new iMac when I transferred everything else. When I open Mail, it brings up the prompt for setting up the email and I seem to have to go through all the steps, which I don't want to do. I'm not sure I can remember how I'd do that anyway. Is that the only way I can now access it? It is also a  hassle to disconnect my computer and reconnect this one but if there isn't a more direct and easier way, I'll do that.

    You are going to have to set up your email account on your Mac if you want to access it....
    http://www.macworld.com/article/2027270/setting-up-email-on-your-mac.html
    Cheers,
    GB

  • Retrieving Creative System Information and Software Autoupdate Iss

    Hello,
    I've been having a problem with a few things in my X-Fi Platinum software.
    First when I attempt to retrieve the System Information using the Creative tool, I get an MS error report stating a problem with ctsi.exe and as such I've been unable to send proper information to tech support, so I'm attempting here.
    Second whenever I attempt the Software Autoupdate I get another MS error report and the program closes down stating a problem with iexplore.exe . I get as far as installing the Acti've X controls, but shortly after installation the error report pops up and my browser closes down. I've attempted to remove the Acti've X controls and reinstall it but to no avail. I've un then reinstalled the software and drivers but with no hope towards this issue. I have reinstalled IE
    These features were working for me on my last configuration, however after changing motherboards when the previous died, it has come to an abrupt end. The previous motherboard was an older version from the newly installed. I am unable to determine if this is a mobo issue as the only problem I have with this system is certain aspects of the sound cards' software, and the mobo is the only change that has been made.
    My relevant system specs are as follows:
    Motherboard: Asus P4P800 SE
    CPU: 3.0 GHz Intel Pentium Prescott
    RAM: Gb Kingston
    Chipset: Intel 865PE, ICH5R
    OS: Windows Media Center 2005 Edition
    I have attempted a clean install of the operating system itself, installed all Windows updates aside from .NET Framework 2.0, and also reintalled Direct X.
    I looked into other trouble threads with no solution found although there may seem to be Asus issues, the only difference is a slightly different model, (previous motherboard was an Asus P4P800X and everything ran fine with the Creative software). These are the only two features that are not working for me, every other aspect runs perfectly fine. On my previous configuration, there were a few critical updates installed, however when searching the downloads section, those same updates are not available there. MCE and XP I understand are almost hand in hand, but would rather not use the wrong firmware or drivers by any means.
    I am at a loss, any help would be greatly appreciated including any relevant threads I may have overlooked. If any other information is needed to troubleshoot the issue, please let me know.
    Thanks

    You might just try reinstalling the drivers & software first, see this http://forums.creative.com/creativel...d=23573#M23573

  • I renew my itunes match and all the old information was lost can some body help me ?

    i renew my i tunes match and all the old information was lost can some body help me ?
    a few month ago i had all my songs on the cloud with i tunes match
    than apple has change their policy and they wanted 24.99 for a year
    after two month i renew my i tunes match but all my information was lost and now i cant play and sync all the music a had
    any body had this problem ?  any body solved it ?

    Greetings yoavfromseattle,
    Welcome to the Apple Support Communities!
    I understand that after renewing your iTunes Match subscription, you are not able to access your music as you would expect. To troubleshoot this situation, I would recommend reading over and working through the information in the attached article. 
    How to troubleshoot iTunes Match - Apple Support
    Cheers,
    Joe

  • My 4s crashed and Apple replaced it while I was out of town. I used it for a week without downloading my old information. When I backed up my old information it erased all my new information from a weeks work. Is there a way to recover that information?

    My 4s crashed and Apple replaced it while I was out of town. I used it for a week without downloading my old information. When I backed up my old information it erased all my new information from a weeks work. Is there a way to recover that information?

    It doesn't matter what it is in your backup that's causing the problem because you can not selectively restore things from your backup. It's all or nothing.
    Set you phone up as a new device and start over.

  • Is it possible to retrieve my old library if old computer crashed?

    I'm trying to retrieve my old itunes music and load on new computer. Old computer hard drive is not accessable /crashed. I don't see any help topics on this issue. I can't imagine this is a unique problem. Can anyone point me in the right direction.

    This is asked and answered constantly - many times this evening.
    You get ONE download only. It is your responsibility to move/copy/backup your music.
    Use your backup copy of your old computer to move the music.
    If for some reason you have failed to backup ( not good), then you can transfer itunes purchases from an ipod: File>Transfer Purchases

  • I had to erase my data to upgrade my iPhone software from an older version. I backed up first, but seem to have lost all my notes.   Does anyone know how retrieve my old notes?

    I had to erase my data to upgrade my iPhone software from an older version. I backed up first, but seem to have lost all my notes.   Does anyone know how retrieve my old notes?

    Is this the note you are referring to:
    Not sure if this can help you.
    I checked my notes. They are stored here:
    MacintosHD/Users/MYHOME/Library/Containers/com.apple.notes/Data/Library/CoreData /ExternalRecords/
    xxxxxserie.of.numbers.probably.yours.are.different/IMAPNote/_records/0/
    If I go tot this window on finder and enter Time Machine I can go back and find old notes...
    If so, am I doing this on my new hard drive on on the time machine? When I do this on the time machine, what is "my home"? Also, I am unable to find "containers".
    If I go to users/jeff/library, then I see components, compositions, contextual, etc, but not containers.
    Thanks

  • I want to change my primary email to my most current email but it keeps saying there is already an apple ID for that email, how do I delete that one so I can use all of my old information, just with my most current email address?

    I created the apple ID that I currently have about 6 years ago and I want to change my primary email from my childish one to my most current email that I constantly use, but I think I accidentally created an apple ID with that email, I want to delete that apple ID so that I can just plug my new email in with all of my old information (that is still the same).  I am so lost

    I don't believe Apple lets you delete old accounts. They also will not let you merge them.

Maybe you are looking for

  • Creation of Production Order for Deleted Material

    How can I prevent a production order from being created for a material that has been marked for deletion?  Currently, our system generates a warning but allows the order to be created.

  • PP DataSource 2LIS_04_P_ARBPL - Incorrect extraction of latest scheduled start dates (SSAVD)

    Hi experts, we use the SAP Business Content Standard DataSource 2LIS_04_P_ARBPL "Work Center View PP" and need the latest scheduled start date each production order operation. In the production order operation overview (t/code CO03) on the ERP-side w

  • Make Currency field editable in F-43

    Hi, My requiremnet is to make currency field in f-43 transaction code to editable. For this I made a entry in OB32 transaction. But after this , I don;t see any changes in f-43. Please advice if this is the right way . Or should I need to use any BTE

  • Excel 2010 workbook crashing Excel 2013

    We have someone who created a workbook in Excel 2010 and when we open it in Excel 2013 it will crash. You can open the doc and look at it, but once you start trying to do anything in it, after a random time period, it will crash. Also if you try to r

  • Ibase component delete

    Hi, Is there anyway to delete of "ibase component" ? I used "CRM_IBASE_COMP_DELETE", but didn't delete component. Any review ? Thanks,