ADF FACES: how to make a page re-render after returning from a dialog

Using EA15.
I am using a process to display a confirmation dialog to the user. However, when the dialog exits, the previous page is not re-rendered. The result of the operation that was confirmed by the dialog makes numerous changes to the underlying model that affect the layout of the original page. All these changes are made in the return listener.
How can I force the original page (the one that launched the process) to fully re-render upon return?
Thanks.

Thanks Adam, but no luck.
My situation is slightly different then the original poster's. I have a table with a 'add row' button in the header, and a 'modify row' button in each row. They both point at the same dialog to enter multiple data attributes about that row of data from a collection in the model. The 'modify row' pops a dialog and modifies item fine, but doesn't re-render the table automatically on return. If user performs any action on the page, the resulting table will then show the correct data. The 'add row' button on the header, but otherwise identical, modifes and re-renders correctly.
I would think this is a fairly common use case. Anyone have example code of this that can be shared? The ADF dialog demo only modifies a single uicomponent, not the entire row or table. And we have other code which demonstrates that works fine.
Is there a problem with a row button return listener adding a partial target of the table in which is resides? Whereas the header button (being outside of the table?) is capable of adding the table as a partial target?
Table.jsp:
<af:table value="#{formBean.dataBean.collection}" var="row" binding="#{formBean.table}">
<af:column>
<af:outputText value="#{row.attr1}"/>
</af:column>
<af:column>
<af:outputText value="#{row.attr2}"/>
</af:column>
<af:column>
<af:commandButton text="Modify..." action="#{formBean.modifyAction}" partialSubmit="true" useDialog="true" returnListener="#{formBean.dialogReturned"/>
</af:column>
<f:facet name="actions">
<af:commandButton text="Add Row..." action="#{formBean.addAction}" partialSubmit="true" useDialog="true" returnListener="#{formBean.dialogReturned"/>
</f:facet>
</af:table>
FormBean.java
public void dialogReturned(ReturnEvent event) {
Item item = (Item) event.getReturnValue();
if (! dataBean.collection.contains(item) {
dataBean.collection.add(item);
table.setValue(dataBean.collection);
AdfFacesContext.getCurrentInstance().addPartialTarget(table);
DialogForm.java
public String submitAction() {
// perform some work against the row item AdfFacesContext.getCurrentInstance().returnFromProcess(item);
...

Similar Messages

  • How to keep the current http session after returning from external web site

    Hi,
    When I use the response.sendRedirect api to redirect the web page to the external payment site, after payment and return back to the current application, I found that the current http session is lost.
    How to keep the current http session after returning from external web site?
    Thanks

    You should make your sidebar1 and sidebar2 fixed positioned. Make your content DIV fluid.
    This should help you: http://www.glish.com/css/7.asp

  • ADF FACES: how to make af:selectOneRadio horizontal

    Is there any way to make the af:selectOneRadio component render the choices horizontally?
    This is really important for optimizing form layout space.
    Thanks,
    Larry.

    Not yet, but there is an enhancement request logged to support this.

  • How to make Login Page in ADF?

    Hi,
    Can anyone suggest me, how to make Login Page in ADF.
    I am new on ADF, is any sample code or application is there than it will be helpful for me.
    please reply its urgent.
    Thanks,
    Ramit Mathur

    HI,
    Jspx code
    <af:panelFormLayout id="pfl1" binding="#{loginBean.mainForm}">
    <f:facet name="footer"/>
    <af:inputText label="Username" id="it1"
    value="#{loginBean.username}"
    binding="#{loginBean.usernameId}"
    required="true"/>
    <af:inputText label="Password" id="it2" secret="true"
    value="#{loginBean.password}"
    binding="#{loginBean.passwordId}"
    required="true"/>
    <af:spacer width="1px" height="20px" id="s3"/>
    <af:panelGroupLayout id="pgl3">
    <af:commandButton text="Submit" id="cb1"
    action="#{loginBean.doLogin}"/>
    <af:spacer width="85px" height="1px" id="s4"/>
    <af:commandButton text="Cancel" id="cb2"
    action="#{loginBean.clearFields}"/>
    </af:panelGroupLayout>
    </af:panelFormLayout>
    BackingBean code
    public String doLogin() {
    String un = _username;
    String pw = _password;
    // byte[] pw = _password.getBytes();
    FacesContext ctx = FacesContext.getCurrentInstance();
    System.out.println("ctx" + ctx);
    HttpServletRequest request =
    (HttpServletRequest)ctx.getExternalContext().getRequest();
    CallbackHandler handler = new SimpleCallbackHandler(un, pw);
    System.out.println("Handler" + handler);
    try {
    Subject mySubject = Authentication.login(handler);
    System.out.println("mySubject" + mySubject);
    ServletAuthentication.runAs(mySubject, request);
    ServletAuthentication.generateNewSessionID(request);
    String loginUrl =
    "/adfAuthentication?success_url=/faces" + ctx.getViewRoot().getViewId();
    System.out.println("loginUrl---" + loginUrl);
    HttpServletResponse response =
    (HttpServletResponse)ctx.getExternalContext().getResponse();
    System.out.println("response---" + response);
    // loginUrl = "/adfAuthentication?success_url=/faces/WelcomeScreen1.jspx";
    sendForward(request, response, loginUrl);
    System.out.println("---" + response);
    } catch (FailedLoginException fle) {
    FacesMessage msg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password",
    "An incorrect Username or Password" +
    " was specified");
    ctx.addMessage(null, msg);
    } catch (LoginException le) {
    reportUnexpectedLoginError("LoginException", le);
    return null;
    private void sendForward(HttpServletRequest request,
    HttpServletResponse response, String forwardUrl) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    System.out.println("sendForward--ctx--" + ctx);
    RequestDispatcher dispatcher =
    request.getRequestDispatcher(forwardUrl);
    System.out.println("sendForward--dispatcher--" + dispatcher);
    try {
    dispatcher.forward(request, response);
    } catch (ServletException se) {
    reportUnexpectedLoginError("ServletException", se);
    } catch (IOException ie) {
    reportUnexpectedLoginError("IOException", ie);
    ctx.responseComplete();
    // 12.Implement a reportUnexpectedLoginError() method:
    private void reportUnexpectedLoginError(String errType, Exception e) {
    FacesMessage msg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Unexpected error during login ",
    "An incorrect Username or Password" +
    " was specified");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    e.printStackTrace();
    }

  • How to make a page break in numbers

    The only way I found to make a new page in Numbers was to make new rows down to where the page would break, but it's only letting me add a few new rows to the new page.  I'd like to know how to make a page break without just adding rows.

    Hi Yellowbox,
    Still I'm not convinced, it gives you indeed some advantages but this page break is a great fault.
    All the company is working on Apple, we try even to keep Microsoft away but what when you make a quote of several pages and have to make your lay out at the end, it is a pain in your xxx to make it well.
    We cannot make different tables for each page nor I want to make it in Pages with a Numbers table.
    Secondly, what do you do when you get a Excell offer that you want to bring to Numbers.
    It opens well but again, you need to make all the page lay out afterwards!
    Thanks for yoru reply.
    It won't change my mind about Apple and Microsoft but for timing earning I won't changes all Excel offers to Numbers anymore. Even if I do not want, it would take me less time to work it out in Excel.
    Our own offers will remain in Numbers ...
    It is a pity but time is so important nowadays!
    Nice week-end.

  • How to make turning page with ibooks author?

    How to make turning page with ibooks author?

    This question has been answered on this thread
    https://discussions.apple.com/message/17981772#17981772#17981772
    Best regards.
    Alex

  • How to make a page header

    how to make a page header

    Lynn,
    Numbers 3 currently doesn't have page headers.
    However, there are some workarounds that can achieve the effect of having headers (though, for footers, you're limited to page number).  See this in Print Preview:
    You can set up extra Header Rows in your table and have them repeat on each printed page. The Table Name only shows on the first printed page, so you may want to uncheck Table Name before printing:
    See this thread for an example of how this workaround worked for one user.
    SG

  • How to make a page reload

    Hi every body, and thank you for reading my post, here's the question I have
    Does anybody know how can I make a page reload???
    Thank's

    If you mean how to make the page reload when someone pushes a button or clicks an action component such as a hyperlink, then have that component's action method return null. To create the action method for a component, double click the component in the Visual Designer.
    To make the page reload after someone selects from a drop-down or list, or when the user changes the value in an input text field, right-click that component and choose Auto-Submit on Change.
    Chris

  • When the page will be load how to make the page blank in run time

    Dear
    when i will run the page the fields shoud come with blank Field.
    i want to make it in runtime.
    example- i have one page having employees data. but when i will run that page the data will not come only blank fields should come, after thar i will create.

    duplicate how to make the page blank field in runtime

  • How to make the page expired when user click back

    how to make the page as expired when i click back button on the browser.
    i want a better way.
    actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
    response.setheader is not working ...
    i have redirect when click back using
    <body onunload>....i call another page here.
    but it is not a good way.
    so pls help me to solve this problem
    using session or another good way

    Use this instead.
    Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

  • How to make compressor give me 1280x720   h.264 from my 1440 x 1080 sequenc

    can someone please tell me how to make compressor give me 1280x720 h.264 from my 1440 x 1080 sequence, with compressor I load up my high defition h.264 but i cant see where i can chage the size, I can tab on the preset and change max bit rates and other stuff but not to make it 1280 x 720,
    Thanks for the help,
    Daz

    In Compressor 3's Settings window:
    Apple > Apple Devices > H.264 for Apple TV
    this is one of the presets that is supplied as standard and it is pre-configured for H.264 1280x720 output
    if you're building your preset from scratch then you can set the output frame size in the Dimensions area of the Geometry pane

  • How to make scheduled jobs Fail if the return partial results?

    How to make scheduled jobs Fail if the return partial results?
    Does anyone know if there is a way to do this?
    We have a number of reports that we schedule to various locations in Excel and PDF. We are frequently getting problems which are manifesting themselves as empty data providers and if we run them as Web Intelligence reports it says Partial Results. Re running the reports normally fixes the problem and returns the data correctly but the problem is that the scheduler reports them as successful and the emails or files get distributed (causing our customers to complain!!!).
    Currently using XIr2 +SAP integration Kit migrating to XI 3.1 in July 2009
    Any ideas/suggestion would be appreciated...
    I did find reference to the adapt case ADAPT01122128 which may help but when and if are unkowns so not much help.
    Ta
    Nick

    This may be helpful to some people:
    http://blogs.sun.com/milan/entry/using_web_service_to_send

  • How to make Adobe F.P. install after downloading installer??

    how to make Adobe F.P. install after downloading installer?? 

    Check where the file has been downloaded to, then double click the download file to start the installation process.

  • How to make the delivery cost changeable after cancellation of GR?

    Create a PO (with Delivery cost), then GR (101) , then cancel the GR (102), but the delivery cost still cannot be modified eventhough the GR has been cancelled - how to make the delivery cost changeable after cancellation of GR?

    Hi
    "You are not allowed to add new delivery costs in a purchase order once goods receipt has been carried out as these would then be proposed in the invoice verification. The related posting to the clearing account for goods receipt and invoice receipt would not then balance, if no further goods receipt took place.
    After the invoice has been received successfully, it is not possible to change the delivery costs in the order. This is because information necessary for problem-free operation is no longer available for the delivery costs that have already been posted for subsequent reversals or invoices, or the operation can no longer be done without errors.
    It is also not possible to change delivery costs for stock transfers with SD shipping after goods have been successfully issued, as this can lead to errors during cancellation."
    I think you have to delete the line item and create a new line item with revised delivery conditions..
    MRao

  • My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    Use the Settings app.
    Settings > General > Auto Lock
    Is Auto Lock set to Never? Change it to less time.

Maybe you are looking for

  • Replication of enhanced Sales Order to R3

    Hi, We have extended sales order on CRM using EEW. This has extended corresponding BDocs. Now when we create the order the additional fields are being replicated to mobile however we want to map them to 'Z' fields in R/3 as well. The R/3 sales order

  • Use of .png files in Photoshop

    I use Fireworks to create graphics using layers with each element on its own layer. When I send them to some companies, they state that a .png file cannot be edited by photoshop, and that the file has only one layer. Can anyone answer a few questions

  • Reloading class in debug mode

    Is there a way in JDeveloper to modify the code in a debug session and have the container re-load it automatically instead of having to re-start the debug session. Any insight will be greatly appreciated.

  • Problems getting PC-to-Mac ethernet to work

    My dad recently got a new MacBook Pro, and I am trying to use an ethernet cable to transfer files from the PC to the Mac. However, even though some things are working, the unsuccessful thing is getting the PC to show up on the network list. I have di

  • Updating i tunes

    I have been trying for at least two hours to work my itunes. After I updated it it doesnt work any more. I deinstalled it and installed it and everytime I try to open it I receive the message " itunes detected a problem and needed to be cloesed" Send