Save point with POJO DataControl not saving model state

Hi Guys,
JDEV 11.1.1.6 64bit
I was able to get save points working with ADF BC (AppMod, View & Entity objects)
but when I tried to do the exact same with Pojo DataControls, I won't save
the current state of the model - meaning things are not "selected" to the
proper record when the SP is restored. I don't get any errors, it just
shows the wrong data.
Example:
The BTF is marked as must have transaction(tried either way), but this is Pojo, and doesn't support Trx.
edit-emp-dept.jspx (with BTF Region)
BTF START
    STEP 1: RichTable with bindings to Pojo DataControl (value="#{bindings.allDepts.collectionModel}")
                 (user selects the 3 record => sales department)
    STEP 2: Edit Sales Dept & on click to next step create SP
    STEP 3: View Emps (Rich Table of ALL emps in that DEPT)
    STEP 4: Edit Emp
    FINAL: COMMIT (save to pojo list) or CANCEL (don't save to pojo list)
/BTF END
At STEP 1 -> STEP 2, the SP is created, and when I close the browser at STEP2, 3  or 4, and
restart, and choose SP to restore, it takes me to proper page (STEP 2)  but the wrong Department is
selected to edit (it shows "Finance" instead of "Sales") & if I hit my ADF back button, it shows
the table with "finance" selected.  In the ADF BC world it works perfectly.
I know the docs say: the ADF Model is saved, so the question is why bindings.allDepts.collectionModel
not "saved" here for Pojo DC and the ADF BC af:table value="#{bindings.DepartmentsView1.collectionModel}"
it is "saved".
Thanks for any insight or work-around.
Sincerely,
Joel
edit-emp-dept.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:form id="f1">
        <af:region value="#{bindings.btfpojodc1.regionModel}" id="r1"/>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>

Hi,
the problem with POJO DC and other non-ADF BC models is that they don't passivate their state. In JDeveloper 12c we allow developers to extend their POJO classes with ADF lifecycle methods that allows them to save the model state themselves. Its a known issue that the transaction state cannot be saved for non-ADF BC models. I checked the bug database for bugs filed against this behavior but could not find one- I can imagine that with 12c we would have a chance to allow developers to handle passivation / activation for non-ADF BC model states. So if this is a feature you need then filing an enhancement request would make sense
Frank

Similar Messages

  • I have recently purchased the new iPad and I am having difficulties with draft emails not saving. Either it saves some of the added text or it saves none of it. Any suggestions, thanks?

    I have recently purchased the new iPad. I can send and receive e-mails (iCloud) without a problem but the draft function does not seem to be working. Specifically, when you go back to work on a draft e-mail, it has not saved the changes you made previously. Kinda annoying!  I think it must be a problem specific to my iPad as my iPhone does not have this problem. All suggestions as to solutions very welcome.

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank power On again in the normal way.] It is absolutely/appsolutely safe!

  • Crashing on save "pointer being freed was not allocated"

    Since installing Snow Leopard, I have been having problems with all applications when saving, opening or browsing for files. Photoshop crashes 90% of the time when I save for web, Firefox crashes when I browse for a file to upload via a dialog box, etc.
    When I open Photoshop, I get a bunch of these messages in console:
    28/08/09 3:17:10 PM [0x0-0x24024].com.adobe.Photoshop[210] Adobe Photoshop CS4(210,0xa0aad500) malloc: * error for object 0x4b109e0: Non-aligned pointer being freed (2)
    28/08/09 3:17:10 PM [0x0-0x24024].com.adobe.Photoshop[210] * set a breakpoint in mallocerrorbreak to debug
    Then, when I try to save a file, I get these errors & then it crashes:
    28/08/09 3:27:55 PM [0x0-0x24024].com.adobe.Photoshop[210] Adobe Photoshop CS4(210,0xa0aad500) malloc: * error for object 0x29d0a310: pointer being freed was not allocated
    28/08/09 3:28:00 PM com.apple.launchd.peruser.501[76] ([0x0-0x24024].com.adobe.Photoshop[210]) Job appears to have crashed: Bus error
    I've tried reinstalling Snow Leopard twice, including a completely fresh install, and still get the same issue.

    i have the same problems, not only with Phohotshop:
    26.07.09 00:18:11 0x0–0x49049.com.adobe.Photoshop568 Adobe Photoshop CS4(568,0xa0b63500) malloc: * error for object 0x4b094e0: Non–aligned pointer being freed (2)
    11.08.09 18:27:13 0x0-0xdd0dd.org.mozilla.firefox4149 firefox-bin(4149,0xa088c500) malloc: * error for object 0x1cb266e0: pointer being freed was not allocated
    11.08.09 18:26:42 0x0-0xdb0db.org.webkit.nightly.WebKit4140 Safari(4140,0xa088c500) malloc: * error for object 0x1798dae0: pointer being freed was not allocated
    11.08.09 18:23:30 0x0-0xcf0cf.org.chromium.Chromium4084 Chromium(4084,0xa088c500) malloc: * error for object 0x1cbcf60: pointer being freed was not allocated
    Often it happens when I try to open or save file, i.e. after pressing the button in some File Dialog.
    PRAM/SMC reset, repair disk permissions and repair disk don't help.
    Hardware test said that all is well.
    now i rolled back to Leopard 10.5.8 - there are no problems at all.

  • Pictures taked with Camera are not saved.

    When taking pictures using my iPad Air the app functions normally but the pictures are not saved to the iPad.  Am I missing a setting somewhere in Settings?

    Yes, they are on the "Camera Roll".
    When I had iPad (the original) these are saved pictures from various apps (Facebook, Wikipedia, emails, ......)
    When I up graded to iPad Air everything transfered over.  Thus pictures are stored in "Camera Roll".
    This still does not explain why pictures taked on the iPad are not saved anywhere.
    Thanks for the response.

  • Why is my Noise Layer (with Levels Adjustment) not saving correctly?

    I'm hoping this is an easy fix, but this problem has me all twisted...
    I have an image built in Photoshop with a Noise layer playing the role of stars on a mainly black background with a Levels Adjustment cleaning up the lighting to dumb it down, but when I go to save the image (in either jpeg or png), that same noise layer bypasses the Adjustment and shines through, distorting the whole image... I simply just want it to save what I have on the screen, but as soon as I go to save, it merges the layers and the noise comes through extremely harsh out of nowhere...
    Attached are examples of the difference of before and after the save... (and the "after" save is a bit more harsh than its displayed here, but you get the point)

    The top larger image is the "after" I save (.png form), the screenshot within photoshop is the "before"...
    I've also tried to the merge layers beforehand as well, but it actually just displays the image as if it were the saved version, with the noise coming through extremely hard. I just didn't save it yet.
    I appreciate the suggestion!

  • Save Order with an item not confirmed

    Hello Folks!
    I hope you can have an answer for me:
    I have a sales order with 10 line items. Nine of them have enough stock to be covered but just one not. Currently I can not  save the sales order with the confirmation of the other 9 line items until this item without stock could be covered. This makes this order useless because my customer is complaining.
    What are the modifications needed in the system so that:
    - I keep the 10 line items,
    - confirm only 9 of them
    - leave 1 item pending until the stock arrives ( I do not want to delete the line item without stock from the order. I would like to keep it as it comes from the original order
    Any idea on how to solve this issue?
    Thanks for you time

    Hi María del Carmen,
    I think you should review it with your SD consultant. At first glance is  strange that it errors out instead of warning you, which would still allow you to save the order.
    I think some leads to the problem area: It could be the sales order type has an incompletion log rule that doesn't allow to save the sales order unless the stock is available  or the definiton of  schedules lines, at the order type level, requires stock availability for every line item of the order.
    Hope this helps.
    GG

  • Form created with LiveCycle is not saving the data of a fillable form.

    I had posted this in another forum, which got moved over to this forum.  Forgive the double post, I wasn't sure if it was assumed that it was resolved.
    This document:  http://www.southark.edu/employment/application-v5.pdf  was created a couple of years ago in Acrobat and LiveCycle.
    I wanted visitors to have the ability to fill in the document and save their data.
    So, I opened it in Adobe Acrobat X and saved it using the Save As > Reader Extended PDF > Enable Additional Features.
    However, after filling in the document and saving, no data is saved.
    I was informed that since it was an XFA form created in LiveCycle Designer, that they have special considerations that don't apply to forms created in Acrobat.
    Still needing help in giving my visitors the ability to save their form data.
    Thanks,
    Charley

    Thanks so much for your reply.
    Employing your solution our website visitors can save the data using Acrobat Pro.
    They cannot save their data using Reader (most of them don't have Acrobat Pro).  See image below.
    Any other thoughts?
    Thanks very much for your time and interest. 
    Charley

  • Pictures taken with Playbook are not saved

    Hello all, 
    I found myself taking a few pics today with the Playbook at work, thinking I could review them later and prepare a report. To my surprise they were nowhere to be found. This is the first time something like this happens and as a user it's concerning, especially when no warning  is issued (i.e. memory or similar). Has this been seen before ? I still have about 500 MB on disk. I appreciate any help devs or other users could please give me.  

    Hi igord
    So from what I understand, you take photos using your BlackBerry Playbook and they are not appearing in your pictures application either?
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Preferences say save passwords, but they are not saved

    For some but not all sites, passwords are not remembered.

    It appears that Firefox is not totally compatible with Lion. I did a fresh installation of Lion and then Firefox 5, so this isn't something that's going to be solved with a reinstallation.
    I have "remember passwords" on, but they're not sticking. This goes for every site; no credentials are remembered, log-in IDs or passwords.

  • 'Open with'/'Always open with' file settings not saved after Mac get's shut down.

    Every time I restart the computer, I have to re-change the 'open with' settings to files. How do you get the Mac to remember the settings after the computer is shut down. It used to not have this problem.

    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    on Terminal does nothing.

  • CS5 - Running Script with Action. Not saving problem

    I am trying to setup an action that runs a script using the "Insert menu item" command.
    It all works perfectly but when I quit Illustrator and re0open it, the action has disappeared.
    Is this a bug or am i doing something wrong?

    Additional info (no solution):
    Could have something to do with the order Illustrator registers available scripts as menu commands and checking validity of action 'menu commands'.
    Try this:
    - Look in the File/Scripts menu and note down a scriptname in there;
    - Exit Illustrator;
    - Start Illustrator
    - Create a new action
    - In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
    - In the textbox enter the scriptname you dotted down and press Find
    It tells you 'No menu item matching that name was found.'
    - Press OK, then Cancel;
    - Goto File/Scripts but don't select a script, close the menu
    now again
    - Create a new action
    - In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
    - In the textbox enter the scriptname you dotted down and press Find
    Now it could be found..
    So it seems that when Illustrator starts:
    Initializes without registering the available scripts as available menuitems
    When the actions are loaded and in it is a Menu Command, it checks if that command is actually available - if not it deletes the action item
    After accessing the scriptmenu the scripts are indeed registered as available menuitems..
    So now if they would only register the scriptnames before loading the actions when starting Illustrator it would be solved. Or of course disable checking action commands for validity.
    Sure hope they solve this soon as I can imagine it affects a lot of people.

  • Reg:pojo datacontrol not functioning wehn exposed as proxy for webservice.

    Hi ,
    I have a class which sets the request and header part and for this data control is created and hence works fine when worked by dragging to page.
    Sample :
    Class1{
    function setheader (){  ....  }
    function setrequest() { .... }
    function invokeservice(){
    Class1 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    } ----------- this works fine.
    But when I use setters in different class, that works through normal run(executingjava class). But not functioning when exposed as data control.
    Class1{
    function invokeservice(){
    Class2 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    Class2{
    function setheader (){  ....  }
    function setrequest() { .... }
    This doesnt function. I want to know the reason for not working, because by this only we can edit the validations of data control attributes , which is not possible in the earlier one.
    Regards,
    Dinesh Vishnu Kumar C.

    I didn't clearly understand the question. If the question is , both Class1 and Class2 are exposed as data control and used in a page, and then you want to update Class2 properties from Class1 then the approach you took is wrong
    You cannot instantiate data control instance of Class2 as you are trying, rather you may need to use binding API to set the value or to get hold of the instnace. See the code snippet given here http://biemond.blogspot.in/2009/03/some-handy-code-for-backing-beans-adf.html
    If you have some method to initialize the properties and this method is added page def as method action ,then following will work
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an Action or MethodAction
    OperationBinding method = bindings.getOperationBinding("someMethodAction");
    Map paramsMap = method.getParamsMap();
    paramsMap.put("param1","value1") ;
    paramsMap.put("param2","value2") ;
    method.execute();

  • Saving model state in ApplicationHandler (or where?)

    Where is the right place to save the state of a model bean during the request lifecycle? In the ApplicationHandler?
    Suppose I have a form and want to persist the data to a database after the user submits the form (and validation is complete).
    <jsp:useBean id="user" class="my.User" scope="session"/>
    <faces:usefaces>
    <faces:form id="simpleForm" formName="simpleForm">
    <faces:textentry_input id="name" modelReference="user.name"/>
    <faces:command_button id="submit" commandName="save"/>
    </faces:form>
    </faces:usefaces>
    In my ApplicationHandler, I have:
    User user = (User)(context.getHttpSession().getAttribute("user"));
    boolean returnValue = false;
    String treeId = null;
    if (formEvent.getCommandName().equals("save")) {
    user.save(); // update the database here?
    treeId = "/faces/acknowledge.jsp";}
    return returnValue;
    This doesn't seem to work for me because the bean properties do not seem to be set from the form at this stage. I have to intervene with something like
    user.setName(context.getServletRequest().getParameter("/simpleForm/name"));
    to get the properties set from the form. (This doesn't seem right!)
    Are the form values supposed to be applied to the model properties by the time the ApplicationHandler is called? If not, where is the right place to save the state of a model?
    I'd rather not save state from the ApplicationHandler if possible. It'd be nice if after all the properties were automatically set in the model, some finalize method could be called to save state or otherwise process before the next page is displayed. Is there a way to do this?

    Hi, I'm not yet an expert an JSF but aas far as my comprehension goes,
    the lifecycle state for updating model values should be prior to the application events phase.
    You can see this as well in the JSF spec chapter 2, where the "Update Model Values" phase comes prior to the "Invoke Application" phase.
    From what you have written, I assume that you are interested in persisting the state of all UIComponents of a page, since there is a difference in saving state ob business objects or their corresponding components. The JSF spec seems to mention the possibility of persisting state automatically, which I think might be a very interesting and powerful feature. Such state should be persisted to a distributable cache so that clustered systems work fine with JSP and are at the same time capable of preserving user specific UI state accross all nodes.
    However, I do not understand the concrete ideas of the tree-factory and I also do not yet understand, what exactly gets stored in the user session: whether only the current UI tree gets persisted there, or ALL trees that a user accesses during a session. The last scenario would not be so good, since clustered systems are often not capable of replicating more than 20K of session data without preformance degradation.
    Renderers could save UIState by coding it into an html form param, but if this approach is not chosen, then I agree that I am also a little bit puzzled as to where and when and how UIComponents are to be persisted.
    What I dislike is that UIComponents jsut have to implement the Serializable interface. Somehow I'd rather like the JSF people to address Serialization of UI components in a more general way. Java 1.4 comes with Long term beans persistance, other people might want to persist components to either databases or caching frameworks. There should be a more elaborate persistance approach for components in my view...

  • Detect if document is not saved(edited state) Indesign SDK Plugin

    Hi,
    I would like to know how to detect if my current document is edited.
    My plugin will alert if there is any modification on the document.
    I did not find it on the documentation pdfs.
    Thanks

    Answered in the other thread (I mixed them up)
    Use IDocument::IsModified()
    Dirk

  • Error "document not saved" when want to save Word/Excel files on NAS server

    Hello everybody!
    I have a NAS server (QNAP storage).I want to have some folders with these permissions : 
    1.nobody can create or delete folders in first parent folders (blue folder and red folders )
    2.everybody can create/save folders,docs... in it. (Black folders)
    when I set permission like picture below,people can not save documents in Excel or Word format in folders ( I have this problem just for Word and Excel).they face with errors : document not saved / access denied,contact your administrator.
    special permission for blue folder (domain users) 
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    Read permission
    special permission for red folder :
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    create files / write data
    create folders / append data
    write attributes
    write extended attributes
    delete subfolders
    delete
    Read permission
    special permission for black folder :
    these folders inherit permissions from parents.
    (include inheritable permission is checked.
    (replace all child subfolders...) is unchecked.
    when I uncheck "delete" permission in red folders and save it,"modify" permission in main permission will uncheck,too.I dont know why?in this situation,people can save docs, but they can rename/delete folders,too ( I dont want they delete
    or rename parent folders).
    what I must do?
    regards,
    atiye moghaddam

    Hi.
    How are the rights configured to be inherited? Could you do a "icacls <folder>" on each level and post it back.
    Also worth considering is that this is a Linux Samba system, so it might not work as a regular windows system.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. Even if you are not the author of a thread you can always help others by voting as Helpful. This can
    be beneficial to other community members reading the thread.
    Oscar Virot

Maybe you are looking for

  • Creation of automatic PO from sales order in 3rd party scenario

    hi , we know, as per standard SAP ,  creation of PR from Sales order happens when we save SO. how to create PO automatically from sales order? and where where to put document type for  that PO ? ( in schedule line category we can set document type fo

  • Macbook Pro starting to run slow

    Hi everyone, I have a macbook pro that is running Snow Leopard 10.6.8 with a 2.4 GHx internal core 2 duo and 4 GB of memory. I have had it for 2 years and its starting to run slowly. When it first boots up it seems to take forever and also when it sh

  • How to increase the width of a report

    Respecetd guru's, i am facing problem to generate a report in our oracle report biulder. becuase i have task to generate FORM NO.X .though i am in HRM module is has so many entity inside .and when i am trying to put thsese its exceed the margn line.

  • Wireless internet--what do i need?

    I just bought a 14 inch iBook g4. It says it has built in AirPort extreme. But I have no idea how to use it, really, and can't find an explanation anywhere. Do I need to buy a base station? All I have is the computer. What do I need in order to conne

  • Can't create object types in forms 10

    Hello, I am trying to use object types in forms 10. I have already created successfully two object types and also corresponding object views. With one object type A everything works fine in form. But with the other object type B it doesn't. I am call