PPR in a Dialog

Hi,
I have a requirement which is something like this -
* Open dialog
* Enter form data
* Open a new browser window on clicking a button (in the dialog) and pass the form data as UI parameters to an external application. The external application will update my application's back end database
* Click a refresh button on the dialog which will update the data shown in the dialog to reflect the changes in the dialog
To accomplish this, I have a PanelBox which shows the data updated by the external application. I then have a button on which PartialSubmit is specified as True. I have also updated the PanelBox's PartialTrigger to the button's id. I am now expecting that when the button is clicked, the PanelBox will refresh itself and its children.
However, this does not work. If the entire logic was on a regular view, it works. I suppose the problem is because of the popup and its content are "finalized" when it is first shown. I have specified the ContentDelivery as LazyUnCached.
Now, my question is - is there any way to get this logic to work on a dialog?
Thanks and kind regards.

Hi,
There should not be a difference between the popup and the view. If there is no change in the behavior if setting content delivery to immediate then I would try explicitly re-executing the binding used in the popup
Frank

Similar Messages

  • ADF Faces: PPR and Dialog framework

    Hi All,
    I know that there have been some navigation-related issues reported with 10.1.3 and the dialog framework, so if this is a bug.....
    Anyway, I have an ADF Faces page that displays some data (from ADF View Object) in an af:Table. I have an "Edit Record" button and a "Create Record" button in the appropriate facets of the table. The 2 buttons use a dialog: navigation case (useWindow=true) to open a pop-up window with a record displayed for editing. Each of the buttons also has partialSubmit=true with an appropriate ID set on the button.
    Now, I am trying to get the table to refresh upon return from the dialog. After much experimentation, I have found that setting the partialTriggers property on the af:OutputText components that are inside the af:Table->af:Column will cause an existing row to refresh upon return from the edit button. However, I cannot get a new row to show up inside of the table upon return from the create button. I have tried setting partial triggers on the af:OutputText, af:Column, af:Table, etc all the way up to the top-level af:Page to no avail. I have also tried refreshing the iterator binding in the dialog return, to no avail. If I completely refresh the page (see sample code below), the record does show up, but it does cause other undesirable side effects (screen scrolls to the top, af:showDetailHeader's re-set their state, etc).
    Any pointers are appreciated...
    Here is the code behind my create button:
      public String performCreateCheck()
        DCBindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateNewCheck");
        Object result = operationBinding.execute();
        // Stuff snipped - the CreateNewCheck binding does a "CreateInsert" on my VO
        return "dialog:EditCheck";
      }Here is the code that refreshes the page (causes the new row to appear):
      protected void refreshCurrentPage()
        FacesContext context = FacesContext.getCurrentInstance();
        String currentView = context.getViewRoot().getViewId();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot x = vh.createView(context, currentView);
        x.setViewId(currentView);
        context.setViewRoot(x);
      }Kind regards,
    John

    Found this: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#81
    on Steve M's blog. His example uses exactly the same method that I do. However, It would be nice to get this working "properly" with PPR instead of refreshing the whole page. Here are what I see as the drawbacks to the "refresh the whole page" method:
    1). The page will scroll up to the top. If the page is bigger than a screenful, this is an annoyance.
    2). Any af:showDetailHeader's will have their disclosed property reset (unless you implement some method of saving their state). This is an issue for me, as the af:Table is inside of a normally un-disclosed af:showDetailHeader
    3). If any component anywhere puts something into the faces messages (e.g. "Record saved"), it will be lost when the page is refreshed.
    Any ideas on how to get this working with PPR?
    Regards,
    John

  • Validation and  Error Message Dialog Box

    hi,
    I created 2 items DateFrom and DateTo.....when User enter dates into these items I need validate these dates i.e DateTo should be greater than DateFrom
    if it is not so,,,,I need to Popup a Error message in Dialog Box.........
    and this Error should not terminate the Program.
    Thanks in Advanced
    regards,
    Radhika

    Radhika,
    You need to attach PPR event to the Date To column. In the event code in controller, you can validate do the validation and accordingly throw error on the page.
    Why do you need a pop up(javascript alert) for that?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can't change the document title when the browser is opened in dialog mode

    Hello experts,
    I'm working on a solution which involves opening up another .jspx page in dialog mode. I need to change the title of the dialog browser window dynamically when the user performs a specific action on the dialog page.
    Unfortunately, I can't get this to work. I have tried using JavaScript and had no luck. I tested this technique on a non-dialog page and it works fine. Please help.
    Here is the markup code for launching the dialog page:
    <af:activeCommandToolbarButton id="actbPreview"
    icon="/graphics/previewscreen_enabled.gif";
    text="Preview"
    action="dialog:weCreate"
    useWindow="true"
    windowHeight="620"
    windowWidth="1120"
    disabled="#{empty bindings.MapElemUnqId.inputValue}"
    launchListener="#{backing_weQuery.launchPreviewerListener}"
    binding="#{backing_weQuery.actbPreview}"
    returnListener="#{backing_weQuery.returnPreviewerListener}"
    clientComponent="true"
    windowModalityType="applicationModal"
    windowEmbedStyle="window"
    disabledIcon="/graphics/previewscreen_disabled.gif";/>
    On the dialog page, here is the markup and javascript for setting the browser window title:
    <af:commandButton text="title" id="cb10">
    <af:clientListener method="setWindowTitle"
    type="action"/>
    </af:commandButton>
    function setWindowTitle(actionEvent)
    actionEvent.cancel();
    var doc = AdfPage.PAGE.findComponent("d1");
    doc.setTitle("TEST");
    alert("Title="+doc.getTitle());
    }

    Thanks for your response.
    I tried that and I could not get it to work. Even though I can set pageFlowScope.pageTitle dynamically, the browser window title does not refresh (I tried to refresh via PPR and full post back).
    here is my code:
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    RequestContext.getCurrentInstance().addPartialTarget(this.document);
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    }

  • Af:dialog cancel problem on new VO row

    Using 11.1.1.4.
    I have an af:popup that contains an af:dialog which itself contains enterable components mapped to VO attributes, the first being an af:selectOneChoice (body-part list). The body-part list draws from an LOV setup on the underlying VO attribute. The LOV RowSet is initialized in the model tier for the row each time the popup is invoked to ensure it contains all the values allowed.
    Everything works fine except when:
    a) user adds a new row to the underlying VO and invokes the popup to initialize the new row values, and
    b) user selects a value out of the body-part list, and
    c) user elects to Cancel the dialog
    The PopupCanceledEvent fires a Delete Operation on the underlying VO in the above case, to remove the new row just added.
    All this works fine, but if the dialog is now invoked either for another new row, or for an existing row, the body-part list shows the value that was selected at b) above and not the value as it is in the Model row (this has been verified). If I add and delete the row using the Delete Operation off an icon above the VO table (outside the dialog), then no issues. The problem doesn't correct itself unless / until user goes in to the dialog again and completes the add row process by hitting the dialog OK button. User can then delete this new row using the icon, and then edit and add operations all work fine again.
    Everything in the model looks fine, the problem just seems to be that the UI components in the dialog aren't initializing properly from the values I know to be in the model WHEN AND ONLY WHEN the dialog has been canceled on the add of a new row (cancel of an edit doesn't cause the problem). I've tried various PPR requests to try and sync the components up with the bound values, but no luck.
    Does anyone have any suggestions as to what might be going on here ?
    Thanks,

    Thanks, again that's fixed it up. Appreciate the support.
    I put a ResetUtils.reset(body-part-list component) in the bean member handling the PopupCanceledEvent and it all works fine now. Don't really understand what's going on here, and why the manual reset is required for this item, but it's working ...
    Thanks again,

  • How to refresh an iterator with PPR set to none after task flow operation?

    Using JDev 11.1.2.1.0.
    Doing the sample here: http://www.gebs.ro/blog/oracle/oracle-adf-creating-an-addedit-bounded-task-flow-using-a-new-transaction/
    For this to work, you've got to set your page iterator/executable's ChangeEventPolicy to "none". Otherwise, you can't set the selected row correctly due to the iterator refreshing on commit.
    I'm trying to extend this example to include a Delete operation setup in the task flow. However, I can't figure out how to refresh the page's iterator to display the updated results. The Delete doesn't run in a dialog so it doesn't invoke the calling button's returnListener.
    Any ideas?
    Thanks,
    Will

    Thank you for your response.
    I'm trying to call the delete operation from a task flow. Once the delete occurs, the page should somehow call a refresh on the iterator displayed. However, since the iterator can not have PPR set, the refresh doesn't happen automatically. Additionally, since the delete doesn't happen as part of a dialog window, the returnListener for the calling button does not fire.

  • ADF Faces EA15: table update not working properly after dialog return event

    Hi,
    in my application I have a table with read-only records and an edit button for each row.
    The button triggers a dialog where one field of of the record can be edited.
    The record is a bean which is put into processScope.
    After accepting the change in the dialog the bean makes an update in the database changing the order of the records in the table on the launching page.
    The return event triggers a re-rendering of the launching page (which I can see from the output of a phase listener) and the table model gets updated but the table output is not updated visually.
    However, if I call the dialog on another record I don't get the record I see in the table but instead I get the record which I'd expected if the table re-rendered properly.
    Do I have to trigger any kind of event on the table now so that the framework knows that a change has taken place and that the table has to be re-rendered? There is no difference whether I use PPR or not. It used to work in EA14.
    Thanks,
    Achim

    In EA14, the return from the dialog required a full-page refresh (whether the dialog was launched with PPR or not didn't matter). In EA15, it's done with PPR if possible. This avoids the flash (and re-scrolling, etc.), but means you do need to tell us what's going to get changed because of the return. You can use partialTriggers on the table with the "id" of the button to make this happen.

  • Another LOV in dialog question

    Having spent some time reading blog entries and forum posts, I am still struggling with my current project. The requirements are quite simple - I have a form with two fields that are populated by dialog LOVs. To simplify this question, lets call the two fields county and town.
    Therefore, as the user goes down the page, they are first prompted to choose a county. This launches the dialog LOV with search capabilities. On selecting the county, the county field is populated in the main form.
    Following this, the user is prompted to choose a town, and again, when the user presses the dialog button, they are provided with a search form for towns. However, the town dialog box must be passed the selected county to filter the appropriate towns.
    This is where my problem lies. I have implemented this by dropping an executeWithParams as a parameter form on to the towns dialog page and bound the 'county_name' parameter to a page parameter. However, I cannot get the page parameter to be populated by the main form, I believe because the dialog button is a commandbutton rather than commandlink, and possilbly doesn't support the <f:param> child element.
    I would appreciate validation of my approach as I believe it to be sound. I am getting more confused, the further I research into this work, and am unsure whether the execute WithParams should be on the dialog page, or as a previous advise suggests on the main form.
    What is the normal pattern of developing this functionality?

    Hi,
    correct, PPR doesn't reflect <f:param> - at least I wouldn't know hot to do this. I think there are quite some options you have
    - use a launch listener to store the selected country in a session attribute
    - programmatically launch the dialog and pass the selected country as an argument
    The easiest way though is the use of a session variable as it can be referenced in the ExecuteWithParams method
    #{sessionScope.variableName}
    Frank

  • JDev 11g TP4: ADF tables and ADF form pop-ups PPR?

    I was hoping somebody could help me with the following please.
    I'm currently having a bit of an issue with ADF tables and ADF forms embedded in a pop-up, where the wrong record is shown in the popup. I suspect it's a PPR problem but am unsure. My scenario:
    1) I have the following table:
    CREATE TABLE "CHRIS_MUIR_DELETE_ME" (
    "ID" NUMBER(5,0)
    "SOME_COLUMN" VARCHAR2(20 BYTE)
    CONSTRAINT "CHRIS_MUIR_DELETE_ME_PK" PRIMARY KEY ("ID"));2) I have a default ADF BC EO/VO combination for this table.
    3) I have an ADF Faces RC page with a read-only table based on this VO:
    <af:table value="#{bindings.ChrisMuirDeleteMeView.collectionModel}" var="row"
       rows="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       emptyText="#{bindings.ChrisMuirDeleteMeView.viewable ? 'No rows yet.' : 'Access Denied.'}"
       fetchSize="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       selectedRowKeys="#{bindings.ChrisMuirDeleteMeView.collectionModel.selectedRow}"
       selectionListener="#{bindings.ChrisMuirDeleteMeView.collectionModel.makeCurrent}"
       rowSelection="single" partialTriggers="myDialog">
      <af:column sortProperty="Id" sortable="false"
        headerText="#{bindings.ChrisMuirDeleteMeView.hints.Id.label}">
         <af:outputText value="#{row.Id}">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.ChrisMuirDeleteMeView.hints.Id.format}"/>
         </af:outputText>
      </af:column>
      <af:column sortProperty="SomeColumn" sortable="false"
         headerText="#{bindings.ChrisMuirDeleteMeView.hints.SomeColumn.label}">
        <af:outputText value="#{row.SomeColumn}"/>
      </af:column>
    </af:table>Note that rowSelection is set to "single".
    3) The page also includes a popup-dialog combo that shows the same data from the table (ie. they're based on the same VO) as an ADF Input Form:
    <af:popup id="myPopUp">
      <af:dialog type="okCancel" id="myDialog">
         <af:panelFormLayout>
            <af:inputText value="#{bindings.Id.inputValue}"
                label="#{bindings.Id.hints.label}"
                required="#{bindings.Id.hints.mandatory}">
               <f:validator binding="#{bindings.Id.validator}"/>
               <af:convertNumber groupingUsed="false" pattern="#{bindings.Id.format}"/>
            </af:inputText>
            <af:inputText value="#{bindings.SomeColumn.inputValue}"
                label="#{bindings.SomeColumn.hints.label}"
                required="#{bindings.SomeColumn.hints.mandatory}"/>
            </af:inputText>
         </af:panelFormLayout>
      </af:dialog>
    </af:popup>Note that the table's partialTriggers is set to the id of the dialog. This implies on return from the dialog, the table will update itself to reflect any changes.
    4) I have a data bound Create commandButton, + a simple Edit commandButton. The Edit button includes an <af:showPopupBehavior> to display the popup:
    <af:commandButton
        actionListener="#{bindings.Create.execute}" text="Create"
        disabled="#{!bindings.Create.enabled}"
        partialTriggers="table1"/>
    <af:commandButton text="Edit">
        <af:showPopupBehavior popupId="myPopUp"/>
    </af:commandButton>If you run the form with the following steps, you can reproduce my issue:
    1) Click the create button, this will create a blank record in the <af:table>
    2) Click the edit button and give the 2 fields values, press ok. Note this is reflected back in the table.
    3) Click the create button, you will now see another blank record in the <af:table>. Note that the current row selection highlight is on the new record.
    4) In the table select the original record, then the Edit button. Oddly the input form is showing the blank record, not the original record even though we selected it in the <af:table>
    This implies to me that I have to hook up a PPR event such that the fields on the popup know to update themselves when the user selects a new row in the table.
    I've tried setting the partialTriggers property for the popup, dialog and individual fields on the popup page to the table id, but this doesn't seem to work.
    Does anybody have any suggestions on how I'm meant to hook up the partialTriggers in this case? I'm at a bit of a loss to know what to do to solve this issue. Is it possible the table selectionListener isn't working?
    Thanks for your help in advance.
    Regards,
    CM.

    G'day gang
    This morning I had a chance to play with Pavle's suggestions, specifically the popup contentDelivery option, and it's solved the issue. Specifically changing the contentDelivery option to lazyUncached was the golden solution.
    As the popup component help states, the default functionality is: "lazy -- the default strategy described above. The content isn't loaded until you show the popup once, but then is cached."
    ....cached being the issue I was seeing.....
    While the lazyUncached options states: "lazyUncached -- the content isn't loaded until you show the popup, and then is re-fetched every subsequent time you show the popup. Use this strategy if the popup shows data that can become stale."
    The nasty thing about the lazy option is the fact that in the dialog it can show the previous cached result (even though you've selected a different record), and you can even appear to edit that cached result in the dialog, but when you press okay in the dialog and return to the previous table, it's updated the record you selected, not the cached result.
    Confusing, but not a bug if you understand the popup contentDelivery options.
    Frank, if you'd like it, I have the simple test case available to send you. But as it's not a bug I wont send it to you unless requested.
    Thanks to both of you for your assistance with this one. Once again your help is much appreciated! :)
    I'll take time out to blog about this in the next few weeks to assist others.
    Thanks & regards,
    CM.

  • ADF 10.1.3.3 Dialog throws nullPointerException after first logout

    I've got an application that uses dialogs to do things like add a contact to a job or a workgroup to a contact etc. The application also uses j_security_check to control logging in and out of the application. The dialogs use pageDefs with iterators and are launched using partial submit=true and use window=true and all works well until you log out. When you log back in as any user and use any dialog you get a null pointer exception on each of the fields bound to the pagedef. It is nothing to do with the connection, views and iterators because I found that even if I just use dummy variables created in the pagedef or use a Globals Iterator I still get the error when the form validates so you can't debug it in the backing bean action or event method because it fails validation prior to this.
    The error happens both in embedded oc4j and standalone. I've googled this a lot but haven't seen any similar issues.
    If I get rid of the use window=true and ppr=true it works fine but I would prefer the popup window.

    Yes Frank. It is invalidated in the following action on the logout form
    public String commandButton_action() throws IOException{
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    response.sendRedirect("/soe-admin/soe/app/Welcome.jspx");
    ctx.responseComplete();
    return null;
    It redirects to the Welcome.jspx page which requires authentication so you are immediately challenged by the logon screen. Once authenticated, the Welcome screen appears with tabs that allow you to navigate to various functions and their dialogs. The tab's actions are Global navigation rules with redirect set to false. I tried setting redirect to true but once you drill down to the dialog it still fails after the first logout.
    Removing the responseComplete() made no diference.
    Thanks
    Greg

  • How to disable "Page Expired " dialog

    Hi,
    I have a problem about session expire. in my web application while time inactive (no request, no access) then "The page has expired" dialog on browser. how to disable the message dialog. dialog title is "Page expired".
    dialog Image link here: http://codeplay.net/wp-content/uploads/2011/05/expired.png
    thanks
    juddi
    Edited by: juddi on May 24, 2011 9:41 PM

    Thats correct the page expired warning does not come when the value is set to 0.
    But , if you remove the page expire warning message by setting the warning value to 0 .The expired page stays there and it the user does a ppr on that expired page he will get an ugly java exception message in popup. If the user does an action which causes a full page refresh there wont be a problem but ppr causes exception in popup like Error in ppr#36 java.lang.NullPointerException.
    If you want to handle that scenario you would need to override ADF Exception Handler http://blogs.oracle.com/jdevotnharvest/entry/extending_the_adf_controller_exception_handler and redirect to error page rather than show an exception in popup. Additionally, if you notice in the custom exception handler when such an view expired exception occurs the message of exception contains ADF_FACES-30108 . So you can check the message and redirect to a custom view expired page.
    Thanks ,
    Achinto Banerjee

  • Inline dialog title icon used when the dialog is running a bound taskflow

    Hy,
    if a bounded/unbounded taskflow runs inside a dialog, in the upper left corner of the dialog a 'task_flow_definition.png/unbounded_task_flow.png' appears.
    Is there a way to replace these icons with a custom icon ?
    In oracle.adfinternal.view.faces.renderkit.rich.RichDialogService these icon url's are hardcoded. I've tried to put an 'afr' and an adf/oracle/skin/images directory under html_root or META-INF with two custom 'task_flow_definition.png/unbounded_task_flow.png': this doesn't work (the original icons from the adf-libs are displayed, but not custom icons).
    Thanks in advance for any help !

    Thanks for your response.
    I tried that and I could not get it to work. Even though I can set pageFlowScope.pageTitle dynamically, the browser window title does not refresh (I tried to refresh via PPR and full post back).
    here is my code:
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    RequestContext.getCurrentInstance().addPartialTarget(this.document);
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    }

  • Filename in Save As dialog when saving PDF file

    I have a web site serving up PDF files. Without going into details, the URLs of the PDFs are not just your basic URL but look simething like this:
    http://www.domain.com/WorkFlowApp/Clients/demo1/secure/Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http://ww w.domain.com/ICCollab/IC_Service.asmx?WSDL
    In this case the actual filename is "Promo Cover Cool-MedHi.pdf"
    While viewing in Safari (OS X), if the user saves the PDF to their local machine, the Save As dialog comes up and the filename field is automatically populated. The problem is, instead of using just the filename, the field contains this:
    http---www.domain.com-WorkFlowApp-Clients-demo1-secure-Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http---ww w.domain.com-ICCollab-IC_Service.asmx?WSDL
    I know when performing the same action on Windows using Internet Explorer, the Save As dialog box filename field is populated correctly with just the filename (although it shows up URL encoded as Promo%20Cover%20Cool-MedHi.pdf, which is OK).
    I'd like to be able to force Safari to use just the filename in the Save As dialog box. Has anyone come accross this problem and figured out a solution?

    Hello Ebnul.nao
    I am having this same problemwith trying to work this out.
    Did you succeed in the end?
    I will really appreciate your help if you did
    Kind regards

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Open and Save Dialog Boxes Appear Briefly then Close

    Open and save dialogs on my MDD 867 flash briefly and then close themselves in my administrator account. All the other accounts are fine. This makes me suspect something in the Library. I just did a wipe and install plus Migration Assistant to no avail--which furthers my suspicion of Library problems.
    Anyone have any suggestions which file(s) could be the culprits?

    More than likely it's a conflict/corrupted amongst the various preference (plist) files. Log into a good admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.
    See http://discussions.apple.com/thread.jspa?messageID=4703015 for more details on this process.

Maybe you are looking for