[ER] Partial submit (PPR) propagation from Region to Parent

Hi!
I would suggest to enable propagation of partial submits (PPR trigers) from Regions to parent page. New Parent Action element in taskflows enables propagation of navigation actions so similar propagation of PPR should be very neat feature.
Regards,
PaKo

Frank,
thank you for info. The blog is very helpful.
Still, I would encourage devs to rethink on some more declarative support for PPR propagation. With ADFc powerful region and taskflow management, the PPR isolation is very limiting or, better to say, introduces additional programming (thus lowering productivity) in order to achieve cross-region UI logic interaction.
Thanks for consideration!
Regards,
Pavle

Similar Messages

  • ADF button submits the whole page even on partial submit=true

    my jdev version 11.1.1.5.0
    I hav a jspx page with two input boxes and three select one choice and a clear button
    on clicking the clear button it subimts the whole page and fetches value for select one choice mapped to manage bean everytime even on putting partial subimt=true

    Two years ago I was confused by the same behavior, so I researched the problem to come eventually to the conclusion that everything had been fine and in accordance to the documentation.
    In brief, it is correct behavior a button to submit the whole page even if the button is configured as partialSubmit="true". Please, refer to these articles in the documentation for clarification:
    Using the JSF Lifecycle with ADF Faces - 11g Release 1 (11.1.1.7.0) ("4.3 Using the Opimized Lifecycle")
    Handling Events - 11g Release 1 (11.1.1.7.0) (See topic "5.1.1 Events and PPR" only)
    It is seen from the second article that command components (e.g. a command button, event type "action") are not event roots, which means that the whole enclosing page "boundary" is submitted. If the button is a part of a subform (<af:subform>), a region, a popup or a PanelCollection, then the boundary is the corresponding subform, region, popup or PanelCollection, so only this part of the page is submitted and processed by the optimized lifecycle. However, if the button is not part of such component, then the whole page is submitted and processed by the lifecycle (even if the button is configured as partialSubmit="true"), but only the partial targets of the button will be refreshed on the screen (if the button is configured as partialSubmit="true").
    If you want your button to submit only a part of the page, then the easiest correct way to do that is to surround that part with <af:subform>.
    Dimitar
    P.S. Input and selection components have different PPR behavior from command components. It is seen from the second article above that all the input and selection components are event roots (in contrast to command components!) (see event type "valueChange"), so if some input or selection component is configured as autoSubmit="true", it will not submit the whole page but only itself and the components configured as partial targets of it.

  • Partial submit in a jsf fragment is not working

    Hi,
    i have a jsf page that is hosting a jsf fragment (using workflow), inside the jsf fragment i have a button that has partial submit = true, and an output text that has partial triggers pointing to the button.
    the button on the fragment page has a "set action listener" that update a variable in a managed bean.
    the output text on the fragment page is displaying the content of that variable (which the button is updating).
    the problem is that partial submit is not working and whenever the button is clicked and the value of the variable inside the managed bean is changed , it is not reflected in the output text.
    note that if you try to use this example in a normal JSF page it will work, so does anybody knows what is wrong.
    i'm using Jdeveloper 11.1.1.2
    ************************** source code of the jsf fragment page *********************************
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:commandButton text="commandButton 1" id="cb1" partialSubmit="true">
    <af:setActionListener from="#{not DepartmentInquiryBean.getterCriteriaPanelDisplayInd}"
    to="#{DepartmentInquiryBean.setterCriteriaPanelDisplayInd}"/>
    </af:commandButton>
    <af:outputText value="#{DepartmentInquiryBean.getterCriteriaPanelDisplayInd}" id="ot1"
    partialTriggers="cb1"/>
    </jsp:root>
    ************************** source code of the managed bean ************************************
    package Merch.Model;
    public class DepartmentInquiry {
    private boolean CriteriaPanelDisplayInd = true;
    public DepartmentInquiry() {
    public void setSetterCriteriaPanelDisplayInd(boolean p_CriteriaPanelDisplayInd) { 
    CriteriaPanelDisplayInd = p_CriteriaPanelDisplayInd;
    public boolean getGetterCriteriaPanelDisplayInd() {
    return CriteriaPanelDisplayInd;
    ********************************************************************************************

    Yes, try appending the region's id to the component inside that region.
    i.e.
    <af:outputText value="#{DepartmentInquiryBean.getterCriteriaPanelDisplayInd}" id="ot1"
    partialTriggers="r1:cb1"/>^ assuming 'r1' is your region's id.
    If your fragment is not inside a region...maybe try doing so.
    Also, see here:
    Referencing a component on a page fragment inside an <af:region>.
    Best of luck.
    Matthew.
    Edited by: Matthew Carrigy on 27/11/2009 10:42

  • Partial submit causing java.lang.ArrayIndexOutOfBoundsException?

    I am using Jdeveloper 11G (11.1.1.2.0).
    I am making a web application with JSF fragments, viewing a select one choice list and a table.
    I have two view objects and a view link linking them together.
    (Using HR database for example)
    ViewObject1: Select * from departments
    ViewObject2: Select * from employees
    ViewLink: :Bind_DepartmentId = DEPARTMENT_ID (for both source and destination)
    I have created one jspx page, a jsf page fragment and a bounded taskflow with the page fragment. Bounded taskflow is dropped on the jspx page as a region. In the fragment I take departments generated from the view link and drop it as a select one choice together with a previous and a next button. Then I drag the employee that is a sub-element of the department and drop it as a table. I set the select one choice to autosubmit = true. For the next and prev button i have tried both partial submit = true and partial submit= false. For the table I set the select one choice as partial trigger.
    If I use the select one choice drop down list I can select department and view the employees, but if I use the navigation buttons I get the following error:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
    oracle.jbo.JboException: JBO-29000: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1574)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:873)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:175)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3574)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3011)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2635)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6733)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3508)
    --- And more -----
    If I do the same, but only with a jspx page and set parial submit for the buttons false its works.
    Anyone knows what's wrong?
    -Thomas
    Project example of my problem: http://heim.ifi.uio.no/tahannes/HRexample.zip (Run start in adfc-config)
    Edited by: Thomas H on Feb 18, 2010 10:58 AM
    Edited by: Thomas H on Feb 18, 2010 12:33 PM

    I found a solution to my problem. Since I have different view objects to update when I choose a value from the navigation list I removed the view link and created a valueChangeListener. This listener execute the query with parameters based on the value from the navigation list for each view object.
    public void UpdateAarUkeIterators(ValueChangeEvent valueChangeEvent) {
    BindingContainer bindings = getBindings();
    int newIndex = Integer.parseInt(valueChangeEvent.getNewValue().toString());
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get("VoAarUke1Iterator");
    String periodenr = iter.getRowAtRangeIndex(newIndex).getAttribute("Periodenr").toString();
    /* ExecuteWithParams read this parameter, not sure if this is the best way to do it */
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("periodenr", ""+periodenr);
    OperationBinding operationBinding;
    bindings.getOperationBinding("ExecuteWithParams");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams1");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams2");
    operationBinding.execute();
    Not sure if this is the best way to do it, but it works.

  • Using clientAttributes during partial submit

    Hello All,
    I am using Jdeveloper 11g for an ADF Project. What I am trying is, to show a popup on click of a button based on a business condition - Looked simple, but....
    What I've been trying to do so far is,
    1. On my jspx page I have an af:popup which contains an af:dialog- I am invoking this popup by a java script method where i call popup.show().
    2. On click of a button(partial submit is true on this button), in my managed bean, I check my business scenario and decide if the popup should be shown or not. I have this flag stored in say a session variable x.
    3. This value in x, I am trying to pass to my javascript using an #{EL} expression in a clientAttribute.
    4. I have a client listner which invokes the correct javascript method which decides if the af:popup should be shown or not based on the value in x, that is passed to it from the client attribute.
    The problem is, the #{EL} expression I am using to get the value is not getting executed on every click of the button. I believe this is because the command button has partial submit set to true. I tried putting a sysout on the getter method being used in the EL , but even that is not being printed. Since the business condition is being executed on click of the button, the value of the client attribute must be refreshed, which is not happening correctly as of now.
    I referred to [http://www.oracle.com/technology/products/jdev/tips/fnimphius/passingAdditionalArgumentsToClientListener.htm|http://www.oracle.com/technology/products/jdev/tips/fnimphius/passingAdditionalArgumentsToClientListener.html] l and this is exactly how I am passing the value to my EL.
    What am I doing wrong, Is there a better way to do it?
    Julian

    Hi,
    if you check the condition in a managed bean, you can launch the dialog from here as well
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "alert('foo');");
    Just change the alert to a JavaScript function call to launch the dialog. The function call would be something like
    function launchMyDialog(){
    //find the popup
    //show it
    Frank

  • Partial Submit

    Hi,
    I want to do form partial submit without using any command link or button. i want to refresh 1 field. how to do that? I'm using Jdeveloper 10.1.3.1.0 ADF BC.
    Thanks and Regards,
    Sudha.

    Hi,
    Actually I found why it is appearing this error. If any default values are there on the form then this error is appearing while setting autosubmit and immediate properties to true for the other field.
    for example I was showing saleId from the sequence file
    protected void create(AttributeList autoSeq){
    super.create(autoSeq);
    SequenceImpl seqSaleId = new SequenceImpl("INVMAST_TEMP_SALEID_SEQ",getDBTransaction());
    SequenceImpl seqRefNo = new SequenceImpl
    setSaleId(seqSaleId.getSequenceNumber().toString());
    and I'm calculating the Total value, so, while showing the result in the Total field, i was setting autosubmit on Qty and Price fields and setting partial trigger on Total field. Then I'm getting this error.
    How to come out of this problem?
    Thanks and Regards,
    Sudha.

  • Will trinidad components partial triggered on partial submit

    Hi All,
    I have a quick question
    is there any issue with with partial submit vs trinidad components?
    i experienced that my components under trinidad layout are not partialtriggred on partial submit
    i am using jdev 11.1.1.5

    Thanks Frank,
    we have pojo datacontrols in my application,database transation is hanlded hibernate and open JPA.
    i have two pages each page has jsff and two diffrent pjojo datacontrols on each jsff.
    now when i update the data from the firstpage, and navigate to the second page(jsff which used the other pojo datacontrol) is refreshing (getting comited records from db) only on when the page is first accssed,supose i navigate back to first page and update some records now i navigate to second page,updated records are not disaplying,if i reopen the url in new browser window then db changes are coming.
    I noticed that pojo datacontrol is refresd only on first access.
    i tried iterator refresh property in pagedef file,but no luck
    can you kindly tell me what needs to be done?

  • Hourglass on partial submit

    Hello,
    When I do a partial submit of a page, I get an hourglass for the cursor in un-used areas (no fields) of the page. It does not go away until I close the page. What typically would cause this to happen? I do have some partial triggers set up. I stepped through the debugger and found nothing pecualiar being aborted or causing errors.
    I am using JDeveloper 10.1.3.3.

    On the Oracle on-line help I found:
    The firstClickPassed attribute specifies a Boolean value for determining whether the first click is allowed to pass. By default this attribute is false. This means when a PPR request or event occurs, ADF Faces blocks all subsequent user input until the event completes. For example, if the user enters text in an inputText that fires a PPR request and then immediately clicks a submit button, two events are triggered—an onchange event followed by an onclick. The onchange event will trigger the client action that starts PPR blocking immediately; the onclick will get consumed by the blocking code and no submit will occur. If you want the submit event to occur, set the firstClickPassed attribute to true to allow the first click to go through.
    I set the firstClickPassed on the body tag to true and it still forces the user to click a button on the page twice to get the action to fire. Anybody with any ideas?

  • Partial Submit type something for InputDate Component?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. I have an ADF table inside my page fragement. One of the column inside table is of InputDate type. Whenever I am clicking input date my complete page fragment gets initialised or refreshed. I don,t want that because I have a method which is getting executed because of it again and again which is giving problem to me. Is their any Partial Submit type anything for Input Date component to resolve this.
    Regards,
    Vik

    As a tree stamps it's children (nodes) and each node can be different, a tree as such don't partial submit. The node content however can issue a partial submit.
    You can also add an other component as partial trigger target in the node selection listener using
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(UIComponent);Timo

  • Partial submit question, only partial refresh...

    I all,
    I use a partial submit on a page on a CommandLink.
    I have also a PartialTrigger for the part I want to refresh.
    It seems that when I click, the link, the entire page is submited and only the PartialTriggered part is refreshed.
    Is it possible to avoid the entire page to submit on have only the partialRefresh because, the only data which has changed is changed with a setActionListener enclaused in the CommandLink.
    Thanks.
    Michael

    Hi,
    no, PPR does not refresh independent of a submit
    Frank

  • CommandButton Partial submit not working within table

    I have two buttons that basically update a table I have printed out. The code is:
    <h:outputText value="FinCen Case Number"/>               
    <h:panelGrid columns="3">
    <af:inputText value="#{caseCommonInfoAction.finCenToAdd}" partialTriggers="addFinCenButton"/>
    <af:commandButton text="Add >>>" id="addFinCenButton" partialSubmit="true" action="#{caseCommonInfoAction.processSaveNewFinCenNumber}"/>
    <af:table var="finCenCaseNumber" banding="column"               value="#{caseCommonInfoAction.finCenCaseList}" partialTriggers="addFinCenButton deleteFinCenButton">
    <af:column>
    <h:outputText value="#{finCenCaseNumber.fincenCaseNumber}"/>
    </af:column>
    <af:column>
    <af:commandButton text="Delete" id="deleteFinCenButton" partialSubmit="true" action="#{caseCommonInfoAction.processDeleteFinCenNumber}">
    <f:param name="finCenToDelete" value="#{finCenCaseNumber.fincenCaseNumber}"/>
    </af:commandButton>
    </af:column>                                                  
    </af:table>
    </h:panelGrid>
    I apologize for the formatting, but copying over as well as hard coding the spaces still makes this forum ignore them. My real problem is that the table does not update when I press the "Delete" button. I did, however, tell the table to use deleteButton's id in partialTriggers.
    At first I thought partialTriggers="addFinCenButton deleteFinCenButton"> was incorrect, so I changed it to partialTriggers="deleteFinCenButton"> and it still doesn't work. The actions I have listed are working correctly (I can hit a save button I have and then refresh the page and the item I wanted to delete is actually deleted).
    Anyone have any thoughts?

    User,
    I think this is a common problem, probably a bug. It works fine if you manually enque the appropriate partial submit stuff.
    See this thread: Re: ADF Faces: PPR and Dialog framework in particular Ric Smith's reply. Poke around on Ric's blog for some code like this:
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
            afContext.addPartialTarget(handler.getTable1());
            afContext.partialUpdateNotify(commandButton11);hope this helps,
    John

  • Can we restrict the partially confirmed production order from getting delet

    Dear all,
    Can we restrict the partially confirmed production order from getting deleted?
    I.e. if the production order is having status PCNF then the deletion flag indicator (status DLFL) should not be allowed to set
    SmanS
    Edited by: SAP PP Consultant on Feb 4, 2009 6:12 AM

    Hi,
    Then must be there is change in BS22.Check allowed transaction setting for Status PCNF/CNF .For reference purpose compare it with other client IDES or sand box.
    For your reference I have pasted Error log on the same.
    Balance of ORD 1000000702 is not zero
    Message no. KO115
    Diagnosis
    The balance on object ORD 1000000702 is not zero. That is, there are still costs on the object.
    System Response
    The object cannot be closed and the deletion flag must not be set.
    regards,
    Dhaval

  • OWB propagation from development to production environment

    Our department is in need to implement overall security around our production data warehouse.
    One issue that seems to bother our management is having only one OWB Designer where developers would have to be responsible enough to use snapshots and export mappings to mdl files. Management would like to have development and production OWB Designer Repository where production designer would always be in sync with what is deployed in prd database. Also prd OWB Designer Repository would be like a source safe so we have to always get a mapping from prd designer move it dev designer and when done propagate changes back to prd designer and then deploy to prd database.
    Would this be a good approach?
    Any input on how to handle propagation from development to production environment, and if you are aware of "best practices" when it comes to OWB environment is appreciated.
    Best Regards,
    Vlasta

    Hi,
    Copy whole catalog and rpd from dev to prob.
    If you want to copy specific report go to OracleBIData\web\catalog\samplesales\root\shared\sample+sales(group folder name)
    You can copy reports under folders and dashboards in _portal in Sample sales group folder...both file and .atr file.But you may miss security applied on those dashboards.
    http://www.rittmanmead.com/2008/04/28/migration-obiee-projects-between-dev-and-prod-environments/
    Best practice is to copy whole catalog and rpd (or) Copy shared and system folders and their .atr files from OracleBIData\web\catalog\samplesales\root so that you will not miss security and you will not over ride users folders which may contain some data created by them.
    Thanks,
    Srikanth

  • Submit new record from search resutls

    I would like to know how to submit the results from a search
    as a new record in the same table from which it came. Any
    thoughts??

    If the search is being built up using querystrings then you
    should be able
    to grab these as the basis of an insert. If you want to use
    standard insert
    behaviours youw ill have to assign them to form values.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Sic Semper Tyrannis" <[email protected]>
    wrote in message
    news:enu0a1$kbu$[email protected]..
    >I would like to know how to submit the results from a
    search as a new
    >record in the same table from which it came. Any
    thoughts??

  • Partial Submit problem with file download listener

    Hi All,
    I am exporting a table to PDF in my jspx page. For this i have written below code:-
    <af:commandImageLink id="cil6" icon="pdf.png"
    partialSubmit="true"
    >
    <af:fileDownloadActionListener contentType="application/pdf"
    filename="SumData"
    method="#{Sum.exportToPDF}"/>
    </af:commandImageLink>
    It is saving the pdf at a desired location. But as i have made my COMMAND LINK is not executing partial submit behaviour inspite that i have made it partialSubmit="true" .
    After downloading pdf when i click anyother button i get an alert saying...DO YOU WANT TO RESEND THE INFORMATION TO SERVER?
    I don't want this behaviour but i am unable to debug this. Please help.

    Hi,
    afaik.. fileDownloadActionListener does a post to server..even if you do partialSubmit to command component
    After downloading pdf when i click anyother button i get an alert saying...DO YOU WANT TO RESEND THE INFORMATION TO SERVER?I guess you might not have enabled partialSubmit on the other button..
    Try these options, in your web.xml set following in context initialization parameters section
    org.apache.myfaces.trinidad.PPR_OPTIMIZATION                  on
    oracle.adf.view.rich.pprNavigation.OPTIONS                          onRegards.

Maybe you are looking for

  • NAS drives grayed out and can't connect to other Macs

    Hello All, After upgrading my 15-inch, Mid 2010 MacBook Pro to Mavericks (10.9 13A603) my NAS storage drives are grayed out in Finder. I can't go directly to my NAS drive in Finder. I can't simply click on the NAS drives in Finder and see what is in

  • Socket not correctly closing...

    Hi, I have developped a C++ Server on Linux, with a Java Client... When the Java Client run on Windows, it works (I tried more than 30 000 requests and the server never crashed) When the Java Client run on UNIX or Linux, it does not work. On the serv

  • Firmware bugs

    Hello! I found three firmware bugs and already informed the hotline about one of them in january. It is not fixed in firmware 1.1, so I am posting here. The first, already reported, bug can be seen with German language setting when configuring the al

  • Why cant Safari open a page all of a sudden?

    When I type in the url http://192.168.2.19/ I get a message saying Safari cant open the page. Its never happened before. Any thoughts or suggestions? (I can go to any other web address, except for the particular one) Thanks

  • Regarding two tables in a page of smartform

    Hi SAP Gurus, My issue is as follows, I am having two internal tables . I need to print them in a page in two blocks. i have created two tables in the main window and diplaying data, the problem is , the second table started printing after the end of