Opening two edit pages at once - data corruption

I have a simple jsf page with a table of Employees, now when the user clicks on a button edit, I put the employee with the associated row on the session map and open the edit employee page which uses the Employee from the session map for manipulating the data. Now what can happen is that that the user would try to edit two Employees at once, with the "open page in new window" from his/hers browser meaning that both pages will refer to the same object hence when the user will press save then the other Employee record will get corrupted which is very bad.
How did you solve this issue?

Today I realized that there is a new JSF version 1.1.02 which is shipped with Netbeans 5.5 + VWP. This version is writing a new hidden parameter (<input type="hidden">) com.sun.faces.VIEW in the HTML output and uses a session attribute "con.sun.faces.logicalViewMap" instead of "com.sun.faces.VIEW_LIST". With this "new" feature you should be able to store more than one business object of the same type in one session under some window ID and benefit from all JSF features without workarounds. I removed a part of my own window management and it seems to work.

Similar Messages

  • Unable to open two PDF's at once in Acrobat Reader 9.1.1

    Hello:
    We are having problems at the company I work at when trying to two PDF's at once.   When the second one is opened, it reboots the computer.  There are no errors showing in Event Viewer.  There are no firewalls that would be causing this issue.

    Try disabling Protected Mode (see Pat's response here: Anyone having problems with the Acrobat Reader 11.0.9 update on Win7 X64?) and see if that helps...
    -Mike

  • Opening multiple web pages at once

    When I used to use a PC, I could open several web pages at the same time without closing out of any of them - this was a new feature on Internet Explorer introduced within the past year. I can't figure out how to do this on my new MacBook. Even if I open a new desktop and launch Safari, it still comes up to the page that I had open in the other desktop. Please help. Thanks.

    Hi,
    do you mean Tabbed Browsing ?
    Using Tabbed Browsing
    With tabbed browsing in Safari, you can open and switch between multiple web pages in a single window. Drag and drop your tabs to rearrange them, open one in a new browser window, or merge all your current windows into one tabbed window. Safari resizes each tab depending on the number you have open. You can even bookmark a set of tabs or revert to the tabs that were open when you last closed or quit Safari.
    To use tabs, instead of opening a new browser window to display another webpage without losing your current one, Command-click a link to open the page in a new tab. You can switch back and forth between tabs by simply clicking the tabs.
    If you want to create a new tab to enter a URL, choose New Tab from the File menu (or press Command-T), then type a URL or select a bookmark.
    (Taken from here: http://support.apple.com/kb/HT2521?viewlocale=en_US )
    And btw, Internet Explorer did not 'invent' Tabbed Browsing
    " Opera was the first tabbed browsing interface, followed later by NetCaptor, later by IBrowse in 1999, then , Mozilla in 2001, Konqueror in 2003, and Safari in 2003.
    It allowed users to utilize the time between the complete opening of two or more different web pages. Later, Internet Explorer also included this feature."
    Have Fun
    Stefan

  • Can you open two seperate apps at once?

    Can you have two separate apps open at once?

    Yes and no. When you open other apps they are all still open in the back ground. You can quickly access them by double tapping the home button to display the multi tasking bar. Also you can quickly access the last used app by swiping with four fingers from right to left or accessing the multi tasking bar by doing a four finger swipe upwards.

  • Reader 10.1.3 shuts down when I open it or open a web page (IE 9), Data Execution Prevention DEP

    I am running Microsoft Vista. I've have the latest Adobe Reader 10.1.3. When I try to open Aobe Reader or when I try to open a pdf file through my browser (IE 9), I receive a message stating that Adobe Reader has stopped working and the Data Execution Program has closed Adobe Reader to protect the computer.
    I scanned my computer for malware and viruses and it is clean. I tried disabling all browser add-ons and I still have the problem. It appears that this is a common proble listed in the Adobe and Microsoft forums and without a real solution (other than going back to using Adobe Reader 8 - which I haven't tried).
    Does anyone have any tested solutions?
    Thanks in advance.

    I am running Microsoft Vista. I've have the latest Adobe Reader 10.1.3. When I try to open Aobe Reader or when I try to open a pdf file through my browser (IE 9), I receive a message stating that Adobe Reader has stopped working and the Data Execution Program has closed Adobe Reader to protect the computer.
    I scanned my computer for malware and viruses and it is clean. I tried disabling all browser add-ons and I still have the problem. It appears that this is a common proble listed in the Adobe and Microsoft forums and without a real solution (other than going back to using Adobe Reader 8 - which I haven't tried).
    Does anyone have any tested solutions?
    Thanks in advance.

  • Opening in edit page

    just reistalled elements 9 on new hard drive and can't get to open dorectly into the edit page

    Can be a preference file issue:
    Please try couple of probable solutions as mentioned below:
    Solution 1:
    1. Close Elements.
    2. Launch the Photoshop Elements Welcome Screen and hold down ctrl + alt + shift as you click Editor.
    3. Continue to hold the keys until you see a message box asking if you want to delete Photoshop Elements settings file; click Yes. Elements will open with default preferences.
    Solution 2: In case any network printer is attached try to launch without network or printer uninstall or make different printer as default.
    Solution 3: Try launching with anti-virus off or removing PSE from conflicting list.
    Solution 4:
    On the drive on which you have installed PSE,on my machine it is on C:
    Go  to C:\Program Files\Adobe\Photoshop Elements  9\Locales\<locale>\Plug-Ins\Import-Exportand you will find twain  plug-in. Remove that plug-in from that location and copy it somewhere  else.
    Now launch PSE and check if it works.

  • Stay on the edit page once saved and see the record as a table

    I like to click on the edit of an interactive report to go to the edit page.
    Once in the edit page, I like to see not only the form to edit the record but also
    the record as a table to see what the record looks like once the save button is clicked below the edit form.
    Thanks.

    Look at the page branches. There will be one or more which goes to the first page. Change it to go to the current page instead of the first page.

  • Open Skillbuilders modal page from report

    I want to open the Skillbuilders modal page from within a report. The first column in a report represents the primary key of the table the report shows. What is the best way to do that?
    The idea is this: in the report region, there's a button CREATE that opens the modal dialog by Skillbuilders. A user can enter some data, clicks submit, modal dialog closes and report is refreshed. That's working now. Now I want to add a link to the first column in the report, that also opens the modal dialog, passing the value of the primary key of the row the user clicks on.
    I'm not that experienced with Javascript, I guess I'll have to create an dynamic action with a jquery selector, and as a true action, a javascript call to open the dialog. Can someone give me a start?
    Thanks in advance!

    You actually do not need that much javascript in this case. Simply design your column as you would normally do to create a link column.
    <ul>
    <li>Column Link: Provide a link text</li>
    <li>Link Attributes: onclick="return false;" class="show_modal"</li>
    <li>Set the target page and provide any items you want filled.</li>
    </ul>
    onclick="return false;" is to prevent the default behaviour of the anchor tag: navigate to the location specified in the href attribute. We want to open the modal page instead.
    Now to have the modal dialog open, create a dynamic action.
    <ul>
    <li>Event: Click</li>
    <li>Selection Type: jQuery Selector</li>
    <li>jQuery Selector: .show_modal</li>
    <li>Advanced > Event Scope: live (so the links will work after pagination)</li>
    </ul>
    For the true action, select the SkillBuilders Modal Page plugin, and make sure these are specified as following. This will take the location in the generated link columns and open a modal page for this location.
    So, this would open your edit page with the correct id (which you set up in the column link).
    </ul>
    <li>URL Location: Attribute of Triggering Element</li>
    <li>Attribute Name: href</li>
    </ul>
    If you set it up like this, you have the convenience of the standard column link definitions, no need for any javascript save onclick=false and no need to fill up page items and deal with submission to session state.

  • ADF Edit page changes do not save to database

    Hi. I'm using JDeveloper 10.1.3, working off the ADF Tutorial to create an edit page that updates a master-detail record. The user selects a record from a list of records in a table called ACTION, which opens an edit page for that record. The user makes changes to the record and clicks a Save button that uses mergeEntity(Object) to update the database:
    <methodAction id="mergeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="mergeEntity"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_mergeEntity_result">
         <NamedData NDName="entity"
              NDValue="${bindings.findActionByActionIdIter.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    After hitting the button, the user is taken back to the full list of records. The full list shows the changes that were just made, BUT the changes are not saved to the database. If I open SQL*Plus and run a query the changes are not there. If I re-start the ADF application, the changes are not there.
    The following code in SessionEJBLocal.java successfully completes and does not throw exceptions. The entity in the unit of work has the proper updated values:
    public Object mergeEntity(Object entity)
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    Object workingCopy = uow.readObject(entity);
    if (workingCopy == null)
    throw new RuntimeException("Could not find entity to update");
    uow.deepMergeClone(entity);
    uow.commit();
    return workingCopy;
    Any ideas? Do I need to create a separate commit button? I don't see anything like that in the tutorial...
    Trevor

    Roy-
    Make sure the named data value (parameter) for the mergeEntity method matches what is returned by the readObject() query. You should not be sending the results of a readAll() query into the mergeEntity() method.
    In my example, the mergeEntity methodAction looks like this...
    <methodAction id="mergeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="mergeEntity"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_mergeEntity_result">
    <NamedData NDName="entity"
    NDValue="${bindings.findActionByActionIdIter.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    I think the parameter is in that NamedData tag. The iterator findActionByActionIdIter is...
    <methodIterator id="findActionByActionIdIter"
    Binds="findActionByActionId.result"
    DataControl="SessionEJBLocal" RangeSize="10"
    BeanClass="<***package names***>.model.Action"/>
    which binds to the result of this readObject() query...
    <methodAction id="findActionByActionId"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal"
    MethodName="findActionByActionId" RequiresUpdateModel="true"
    Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findActionByActionId_result">
    <NamedData NDName="findActionId" NDType="java.lang.Integer"
    NDValue="${userState.actionID}"/>
    </methodAction>
    ...which runs based on what the main list (readAll() query) page sets in userState.actionID before the navigation goes to the Edit page.
    All the above markup is defined in the page definition of the Edit page. If you're having problems with Master-Detail, maybe just try to get the non-foreign key fields working first. Hope this helps.

  • Firefox opens two windows when I open the browser

    When I open the browser it always opens two home page web pages
    == This happened ==
    Every time Firefox opened
    == I installed win 7 ultimate

    I had the same problem.
    Solved it by starting Thunderbird in a safe mode (http://kb.mozillazine.org/Safe_mode), closed it and started normally...
    Thunderbird showed 1 window afterward... I did play around before that with disabling/enabling extensions but at the end the safe mode helped... Hopefully this helps someone :)

  • Two Editable Forms on One Page, Issues / Problems Applying Data

    Greeting Everyone!
    I have a problem and I need assistance in getting this issue resolved (advice).
    I have a page with two editable regions, each editable region references a different table. The two tables are related by a common key value. The first issue is that I am able to successfully load the data from the second region, but the data from the first region is not loaded into it's particular form region. Additionally, I have two sets of buttons, one set per region, and two sets of fetch processes and two sets of automatic row processing dml routines.
    Can two forms coexist on the same form or would it be more appropriate to try and make my changes with a view?
    Thanks,
    Charles

    I agree that when you have pages that are more complicated than 1 form etc you should look at writing the code to populate and process the data yourself. I would ditch the automatic row processing and fetch routines and write your own. More work, but gives more control.
    Something like:
    begin
    if :P1_AID is not null then
    select [your table columns] into :P1_AITEM1, :P1_AITEM2
    from [your table]
    where id = :P1_AID;
    else
    :P1_ATEM1 := null;
    :P1_ATEM2 := null;
    -- same for 2nd form
    end if;
    end;
    Conditionally display the insert/update/delete buttons and you're set.
    Then just add the appropriate handlers on submit, conditionally running them based on button or request. Either build your insert statement in the after submit processing or call pl/sql.
    I tend to use pl/sql packages to handle table API's.

  • In Pages, how do I edit the "My Card" data?

    in Pages, how do I edit the "My Card" data?
    I can't get a sender field to select my Email address or mobile phone.
    I've searched the Help file for "My Card" and come up with nothing.
    I've looked in My Contacts and edited the data where my name has a little blue bust (figuring MAYBE that's the My Card),
    but everything looks correct in there, so the sender field isn't pulling data from here.
    So WHERE DO SENDER FIELDS COME FROM?

    Peter:
    First of all, THANKS for the quick reply. However it’s not working, either from the Link Inspector, or directly from the Menu. Here’s the steps to reproduce the problem:
    I start with a new blank document, then pull down the Insert menu / Sender Field / Name / First Name, all it does is insert the word “First Name” into the document.
    Pull down the Insert menu / Sender Field / Phone / Home Phone, all it does is insert the words “Home Phone”.
    Same with all the other fields.
    In other words, Sender Fields are not pulling data from the Contacts list.
    I have done as you suggested, even closing both the Pages program AND Contacts, then starting Contacts first before starting Pages, in the hope that the link between the two will be established when starting Pages.  Still no good.
    I got it to work once last night (which was a good sanity-check for me to know I was doing it right) after editing my contact data inside the Contacts program, but I can’t get it to work today. I’ve tried rebooting, restarting Contacts, starting contacts BOTH before and after starting Pages. But it still won’t go.
    It’s hard to believe this program is an Apple product, seeing how unreliable it is.
    Any other suggestions?
    Vic

  • Open and edit PDF document simultaneously in two windows

    I am currently studying on a very long PDF, about 1600 pages. I have two copies of the same PDF open in full screen, and I use the first (A) to read and highlight, and the second (B) to search for images and references. So if I am on page 200 of A, and it refers to an image on page 270, instead of scrolling 70 pages and losing track of where I was I scroll on B.
    That being said, I tend to highlight on both copies, and I would like to have unified highlights and comments. Is there a way to:
    a) merge the comments and highlights after I close both files
    or
    b) instead of having two copies of the same file A and B, open two windows of the same file A and merge modifications

    Adobe Reader won't but Acrobat Pro XI can open the same document in two windows and it updates both as you make changes "on the fly"...
    The downside? $499.
    Acrobat Standard is $299 and I  don't know if it can do the "one doc two window" editing.

  • HI .. PROBLEM IN SUBMITTING THE EDITED DATA FROM THE EDIT PAGE

    HI,
    I am having a Main form consiting of a af:table which is binded .. so when i select the row and click on "edit" button binded with the table.. i am able to get the respective data form in the Edit page.
    Now when i modify any data in the binded textbox ..... and when i submit the form the "row currency change error " is displayed...
    Plz help me how to solve this problem.....

    Hi,
    so you have a table, select a row and navigate to an edit form. Inhere you change the data displayed and press submit to navigate back to the table. On otn.oracle.com/products/jdev this scenario is available in the OBE (Oracle By Example) if you need a sample.
    What you should try is to open the pageDef file in the StructureWindow, select the iterator, e.g. DepartmentsIterator, that populates the table and open teh Property Inspector. Under "Refresh Condition" set ${!adfFacesContext.postback} to avoid the table being refreshed on JSF postback
    Frank

  • Random page item data corruption

    I designed an APEX page for a service request processing application with several date page items. Our database is Oracle 10g. The application is in production and the users have reported that data in some date page items become corrupted randomly. For example, the user enters ’07/04/2011’ in the date page item “Planned Start Date” among other values and submits the page. The date somehow winds up ‘07/04/0011’ that is, year 11. (A corrupt date increases the risk that these transactions will not be processed in a timely manner and will negatively impact the level of customer service the user wishes to provide.)
    I have identified three possible areas that may hold the key to underlying cause: 1) page item edit mask, 2) page process(es), 3) DB column constraints. Inasmuch as this is a random problem and has affected a handful of rows it may not be possible to trace the logic as the pages are processed. Has anyone encountered this problem and can suggest a possible remedy? For the sake of clarity I placed the setups for the affected page item below.
    Selected setups for P14_PLANNED_START_DATE, all unlisted attributes are blank or null:
    Settings - Value Required: No; Format Mask: MM/DD/YYYY; Show: on icon click; Show Other Months: No; Navigation List for: None
    Source - Source Used: Always, replacing any existing value in session state; Source Type: Database Column; Maintain Session State: Per session; Source Value or Expression: PLANNED_START_DATE
    Default - Default Value: to_char(sysdate, ‘MM/DD/YYYY’); Default Value Type: PL/SQL Expression
    Sample page processes are:
    Validation - Name: P14_PLANNED_START_DATE not null; Type: Item specified is not null; Validation expression: P14_PLANNED_START_DATE; Always execute: No
    Conditions – Condition Type: SQL Expression; Expression 1: :REQUEST IN (‘SAVE’, ‘CREATE’)
    Validation – Name: P14_PLANNED_STARTEND_OKAY; Type: Function Returning Boolean:
    Validation Expression:
    IF SIGN(to_date(to_char(to_date(:P14_PLANNED_START_DATE,'MM/DD/YYYY'),'YYYYMMDD-') || :P14_PLANNED_END_TIME,'YYYYMMDD-HH:MI AM')
    - to_date(to_char(to_date(:P14_PLANNED_START_DATE,'MM/DD/YYYY'),'YYYYMMDD-') || :P14_PLANNED_START_TIME,'YYYYMMDD-HH:MI AM')) > 0
    THEN RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Conditions – Condition Type: PL/SQL Function body returning Boolean
    Expression 1:
    IF :REQUEST IN ('SAVE','CREATE') THEN
    IF (:P14_PLANNED_START_TIME IS NULL OR :P14_PLANNED_END_TIME IS NULL)
    THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    ELSE RETURN FALSE;
    END IF;
    Database: The attributes for the database column are
    Column Name: PLANNED_START_DATE
    Data Type: DATE
    Nullable: No

    Ligon,
    You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
    I don't have his implementation details anymore to even share with you.
    Sorry I couldn't be more help.
    Good luck,
    Stew

Maybe you are looking for

  • Simulair report for FBL5N and FBL1N for new general ledger on segment level

    We are working with segments in new G/L ledger. We want to run a open item report where we can combine customers and vendors by segment. The vendors and customers are linked in the master data. In the "old"  reports FBL5N and FBL1N you can do this bu

  • Does the ipod nano charge quickly when connected to a mac?

    hi everyone. I recently switched from windows to a macbook. i noticed that my ipod nano(second generation) charges quickly when connected to the mac as compared to when i connected it to my pc? is this possible or is there something wrong with my ipo

  • Restarting in OS 9 to use Epson C86 printer with OS 9 applications

    I've installed the software for the Epson C86 printer on my iMac (Panther, OS 10.3) and I want to use the printer with applications running in the Classic Environment. I've got the OS 9 System Folder installed. The printer instructions say to restart

  • CS6 Bridge startup scripts, AGAIN!

    Had the same problem with CS5 and beta CS6, Bridge startup scripts won't load, meaning the outout pane is blank. Over the past 2 years, 2 different computers, 3 hd's, clean installs on all and I keep getting the same problem. This time, standard inst

  • Usermode exception in IE7

    I am running Windows Vista and the installed version of Quicktime is 7.5 Whenever I try to watch a trailer from apple.com IE crashes. Here's an analysis of the .dmp file. Can someone point me in the right direction: In IE1244_2008-09-07_01-11-32-0361