Partialtriggers in a region

I have following code in a region(all in one jsff file), but "Quit" commandlink doesn't fire "executeSearch1".why?
I am using jdev 11.1.2.2
<af:commandLink text="Quit" partialTriggers="r4:0:executeSearch1"
actionListener="#{NavigationManager.back_to_search}"
id="BACK_TO_SEARCH" shortDesc="Back to Search">
<af:clientAttribute name="Accelerator" value="Ctrl+DOM_VK_C"/>
</af:commandLink>
<af:commandLink id="executeSearch1" partialSubmit="true"
actionListener="#{SearchManager.ActionListenerHandler}" text="Search1">
</af:commandLink>

Duplicate of PartialTriggers in Region
Timo

Similar Messages

  • Error while running a page which contains a region

    Hi ADF Experts,
    I am having a jsff page fragment. The fragment has panelbox(with some content and button) and a panel group layout(which contains a region).
    On click of the button the panelbox is disclosed to false and the region is to be rendered.
    But on page load I am getting the below exception. Earlier the page was coming fine. After dragging the region I am getting this error.
    Hierarchy is as below:-
    <af:panelBox text="Search Filters" id="pb1" type="stretch"
                     inlineStyle="width:inherit; height:inherit;"
                     binding="#{pageFlowScope.TreeModel.searchFilterPanelBox}"
                     partialTriggers="cb3">
    <af:commandButton text="Search" id="cb3" partialSubmit="true"
                                    actionListener="#{pageFlowScope.TreeModel.searchorderProposal}"/>
    </af:panelBox>
    <af:panelGroupLayout id="pgl15" layout="scroll" binding="#{pageFlowScope.TreeModel.searchResultsDisplay}" rendered="false"
                            partialTriggers="cb3">
       <af:region value="#{bindings.BTFSearchResults1.regionModel}" id="r1"/>
    </af:panelGroupLayout>
    The region contains
    <af:panelGroupLayout id="pgl1" layout="scroll">
        <af:panelGroupLayout id="pgl16" inlineStyle="width:1239px; height:inherit;"
                             layout="horizontal">
    <!--some content-->
    </af:panelGrouplayout>
    onclick of the button the region is rendered as true and the disclosure of the panel box im setting as false.
    But after adding the region im getting below error.
    Caused by: java.io.FileNotFoundException: MDS-01500: The MDSObject /orderproposals.jsff is an XML document and cannot be loaded using StreamedObject API.
    Thanks in advance,
    Roy

    I'm not sure about this but using rendered is always a problem if you want to show show the element during a ppr (which is what you do AFAIK). Once a component has rendered='false' is removed from the component tree and can't be put back in there without a full page refresh.
    Try using the visible property instead or use an af:switcher component.
    Timo

  • Region Refresh

    Dear All,
    Use Case:
    I have an input text and a region below it. In the input text, you could supply employee Id and the region should display Employee Information.
    On click of a button, I am setting a pageflowscope variable.
    <af:inputText label="Employee ID" id="it2"
                              value="#{pageFlowScope.employeebean.empId}"/>
    <af:commandButton text="Search" id="cb1" partialSubmit="true">
        <af:setPropertyListener from="#{pageFlowScope.employeebean.empId}"
            to="#{pageFlowScope.empId}" type="action"/>
    </af:commandButton>
    <af:outputText value="#{pageFlowScope.employeebean.empId}" id="ot1"
        partialTriggers="cb1"/>
    <af:region value="#{bindings.EmployeeInfoFlow1.regionModel}"
                         id="r1" partialTriggers="::cb1"/>I already setup my taskflow to read from this pageflowscope variable and already configured my partialtriggers.
    <taskFlow id="EmployeeInfoFlow1"
                Refresh="ifNeeded">
      <parameters>
         <parameter id="empId" value="#{pageFlowScope.empId}"/>
      </parameters>
    </taskFlow>My problem is that, the #{pageFlowScope.employeebean.empId} is not updated with inputtted value if the region
    is present. But if I comment out the region, I see my input text getting updated values?
    What could be the reason thanks?
    Edited by: Neliel on Aug 1, 2011 1:52 AM

    Hi Jobinesh,
    I notice that the region refreshes first after I clicked the button but before the pageflowscope input parameter was updated.
    I already removed the partialtrigger on the region and I was hoping that it will accept the new value of employeedId that is in pageflowscope but I noticed
    that it is still reading the previous value which is blank. The adf region is still returning data from the first call in the web service which is weird.
    I simplify my coding and made simple code first without the region and managed bean and the used of setpropertylistener. I used this simplified codes.
    I notice that this code is ok:
    <af:inputText label="Employee ID" id="it2" value="#{pageFlowScope.empId}"/>
    <af:commandButton text="Search" id="cb1" partialSubmit="true" />
    <af:outputText  value="Employee ID: #{pageFlowScope.empId}" id="ot1"
                               partialTriggers="cb1"/>But this one causes trouble, the taskflow call to the web service is still blank or null.
    What's worst is that the output text value is unable to refresh its value
    <af:inputText label="Employee ID" id="it2" value="#{pageFlowScope.empId}"/>
    <af:commandButton text="Search" id="cb1" partialSubmit="true" />
    <af:outputText  value="Employee ID: #{pageFlowScope.empId}" id="ot1"
                               partialTriggers="cb1"/>
    <af:region value="#{bindings.EmployeeInfoTaskFlow1.regionModel}"
                         id="r1" />I am finding this behavior really odd or I am just too dumb to understand I think.. ;(

  • One region triggered by another region

    Hi,
    I want to change the rendered property of a component in main page(container of regions) as well as a component in region1 based on value selected in the drop down in region2.
    I wrote the following code for region1:
    <af:panelGroup partialTriggers="Region2:selectAccPPR">
    <af:region id="Reg1" regionType="ss.Region1" value="#{bindings.idReg}"/>
    </af:panelGroup>
    Simply, using 'partialTriggers' as other region's id. But this is not working.Same region component is dynamicallly rendering based on other component state in that region.
    How to make one region and main page triggered by another region?
    Please reply asap.

    Please tell if anyone has any idea of this.
    I am using Jdev10.1.3

  • How to refresh an Image component

    Hi,
    jdev 1.1.1.5
    I have a parent page with a table to show employees and a tab to show detail of employees
    Detail is in a Region and is sharing the same datacontrol with parent page and i don´t have any parameter in task flow.
    Sincronization Parent - Detail works fine using Partialtriggers.
    Detail Region has a button for upload an image and another button to process the image and an Image component(by servlet) to show it.
    Process button call an operation exposed in AM, This method do Insert or Update in IMAGE TABLE.
    The problem is than image is not refreshed until i do full refresh the page.(but only occurs when updating the image, for insert the Image component show the new image)
    I tried this code at end of process button logic but i can't achieve refresh the image.
      public void saveFileUploaded() {
          oper =
              bindings.getOperationBinding("myMethodInAM");
           Map args = operaImatge.getParamsMap();
           args.put("empId", empId);
           args.put("imatgeBlob", createBlobDomain(file));
          oper.execute();
    // try refresh entire region method 1
           AdfFacesContext.getCurrentInstance().addPartialTarget(JSFUtils.findComponentInRoot("r1"));
       // try refresh image component
           AdfFacesContext.getCurrentInstance().addPartialTarget(JSFUtils.findComponentInRoot("imageEmp"));
      //  try refresh region method 2    
           RichRegion region = (RichRegion)JSFUtils.findComponentInRoot("r1");
           region.refresh(JSFUtils.getFacesContext());
      }Any suggestion?
    Thanks in advance
    Edited by: DV on 03-sep-2011 17:36
    Edited by: DV on 04-sep-2011 11:33

    Hi,
    I have updated the use case at first message.
    you wrote
    you have a binding to the component that is holding the image.. and then refresh the container region..
    that would refresh the image inside.
    can you give two cents?
    i just created a binding for image component but
    what must i do?
    Remember
    the button for process image (operation exposed in my AM service) and Image component(by servlet) are in the same .jsff.
    Means the changes occurs in same jsff without interaction with parent page.
    Thanks,
    Edited by: DV on 04-sep-2011 11:43

  • Iterator in dynamic region located in a popup does not refreshed on cancel

    Hi All,
    i have the following scenario:
    I have jsff made as a taskflow and added into a page on the following way:
    <af:popup id="address" partialTriggers="saveAddressButton cancelAddressButton">
    <af:dialog type="none" title="Create/Edit Address" modal="true" closeIconVisible="false" >
    <f:facet name="buttonBar" >
    <af:group>
    <af:commandButton id="saveAddressButton" actionListener="#{AgentsBean.saveAddress}" partialSubmit="true" text="Save"/>
    <af:commandButton id="cancelAddressButton" immediate="true" actionListener="#{AgentsBean.cancelAddress}" text="Cancel"/>
    </af:group>
    </f:facet>
    <af:region value="#{bindings.dynamicRegion12.regionModel}"
    id="dynamicRegion12"/>
    </af:dialog>
    I use this jsff, opened in a popup to create/edit rows. I create the new row into the main page backing bean method and when calling fragment it's iterator is get synch. with the created row. When i pass the row for edit , it is also synch with a fragment iterator.
    The problem comes if i using the cancel button in a popup , then the iterator doesn't refresh anymore when i open again the popup. It stays on the last row where it was before pressing the cancel. I try to execute setCurrentRowWithKey with passing th key as param to the taskflow but method is also didn't executed.
    I removed my logic from the cancel button and it's also the same.
    I tried with built-in cancel on af:dialog - again the same.
    It looks that submition with immediate =true and closing popup is enough to causing this.
    I have Refresh="ifNeeded" on a taskFlow but this causes only refresh of input taskflow parameters.
    <taskFlow id="dynamicRegion12" taskFlowId="${AgentsBean.addressTaskFlowId}"
    Refresh="ifNeeded"
    Any ideas how to refresh iterator?

    Hi Frank,
    I have followed the same approach. However in my case its a dynamic af:region which is causing the issue.
    Any other pointers is much apprecitaed.
    Thanks,
    Vikranth

  • Using AdfPage.PAGE.findComponent to find a popUp in a region

    Adf11g
    Hello
    I have a task flow in a region on a page - the region is named regionTrans.
    The main page in the taskflow has a popUp in the jsp:root - the popUp is named popTrans
    As I need to do a CreateInsert() before displaying the popUp I'm displaying the popUp using the following code :
        public static void showPopup(String popupId) {
           FacesContext context = getFacesContext();
           ExtendedRenderKitService extRenderKitSrvc =
                    Service.getRenderKitService(context, ExtendedRenderKitService.class);
           extRenderKitSrvc.addScript(context,
                                           "AdfPage.PAGE.findComponent('" + popupId + "').show();");
            }   In order to show the popUp in the region when the user clicks a button I have to use "regionTrans:0:popTrans" for the popupId.
    "regionTrans:0:popTrans" was found be looking at the source of the generated page.
    What I don't understand is what the "0" represents in the "regionTrans:0:popTrans"
    Can anybody explain ?
    Regards
    Paul

    Hi
    Here's where the region is defined in the main page :
    <?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"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['ch.mit.trac.view.resourceBundle.ViewControllerBundle']}"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="TRAC v#{bindings.Version.inputValue}">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:decorativeBox theme="light" topHeight="30px" id="db1">
              <f:facet name="center">
                <af:region value="#{bindings.transaction1.regionModel}"
                           id="regionTrans"/>
              </f:facet>
              <f:facet name="top">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     id="pgl1">
                  <af:menuBar id="mb1">And here's the entire jsff
    <?xml version='1.0' encoding='UTF-8'?>
    <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"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['ch.mit.trac.view.resourceBundle.ViewControllerBundle']}"/>
      <af:panelStretchLayout id="psl1" topHeight="42px" visible="true"
                             inlineStyle="width:1367px; height:851px;">
        <f:facet name="center">
          <af:panelStretchLayout id="psl2" topHeight="29px" bottomHeight="49px">
            <f:facet name="bottom">
              <af:panelGroupLayout layout="horizontal"
                                   xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                   id="pgl5">
                <af:separator id="s3"/>
                <af:outputText value="Warnings : 5" id="ot2"/>
                <af:commandButton actionListener="#{bindings.Rollback.execute}"
                                  text="Rollback"
                                  disabled="#{!bindings.Rollback.enabled}"
                                  immediate="true" id="cb5">
                  <af:resetActionListener/>
                </af:commandButton>
                <af:commandButton actionListener="#{bindings.Commit.execute}"
                                  text="Commit"
                                  disabled="#{!bindings.Commit.enabled}" id="cb4"/>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="center">
              <af:panelSplitter id="ps1" splitterPosition="690">
                <f:facet name="first">
                  <af:panelGroupLayout layout="scroll"
                                       xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                       id="pgl3">
                    <af:panelHeader text="#{viewcontrollerBundle.BUY}" id="ph1">
                      <f:facet name="context">
                        <af:inputComboboxListOfValues popupTitle="Search and Result Dialog"
                                                      id="inputComboboxListOfValues1"/>
                      </f:facet>
                      <f:facet name="menuBar"/>
                      <f:facet name="toolbar">
                        <af:commandToolbarButton text="#{viewcontrollerBundle.NEW}"
                                                 id="ctb1"/>
                      </f:facet>
                      <f:facet name="legend"/>
                      <f:facet name="info"/>
                    </af:panelHeader>
                  </af:panelGroupLayout>
                </f:facet>
                <f:facet name="second">
                  <af:panelHeader text="#{viewcontrollerBundle.SELL}"
                                  id="panelHeader1">
                    <f:facet name="context">
                      <af:inputComboboxListOfValues popupTitle="Search and Result Dialog"
                                                    id="inputComboboxListOfValues2"/>
                    </f:facet>
                    <f:facet name="menuBar"/>
                    <f:facet name="toolbar">
                      <af:commandToolbarButton text="#{viewcontrollerBundle.NEW}"
                                               id="commandToolbarButton1"/>
                    </f:facet>
                    <f:facet name="legend"/>
                    <f:facet name="info"/>
                  </af:panelHeader>
                </f:facet>
              </af:panelSplitter>
            </f:facet>
            <f:facet name="top">
              <af:panelGroupLayout layout="scroll"
                                   xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                   id="pgl4">
                <af:outputText value="outputText1" id="ot1"/>
                <af:separator id="s2"/>
              </af:panelGroupLayout>
            </f:facet>
          </af:panelStretchLayout>
        </f:facet>
        <f:facet name="top">
          <af:panelGroupLayout layout="horizontal"
                               xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                               id="pgl2">
            <af:selectOneChoice value="#{bindings.UserPositionView.inputValue}"
                                required="#{bindings.UserPositionView.hints.mandatory}"
                                shortDesc="#{bindings.UserPositionView.hints.tooltip}"
                                id="soc1" autoSubmit="true">
              <f:selectItems value="#{bindings.UserPositionView.items}" id="si1"/>
            </af:selectOneChoice>
            <af:spacer width="10" height="10" id="s1"/>
            <af:selectOneChoice value="#{bindings.SttTransactionViewViaPosition.inputValue}"
                                shortDesc="#{bindings.SttTransactionViewViaPosition.hints.tooltip}"
                                id="soc2" partialTriggers="soc1">
              <f:selectItems value="#{bindings.SttTransactionViewViaPosition.items}"
                             id="si2"/>
            </af:selectOneChoice>
            <af:commandToolbarButton text="#{viewcontrollerBundle.PREVIOUS}"
                                     id="cb2"
                                     actionListener="#{bindings.Previous.execute}"
                                     disabled="#{!bindings.Previous.enabled}"
                                     partialSubmit="true"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.NEXT}" id="cb1"
                                     actionListener="#{bindings.Next.execute}"
                                     disabled="#{!bindings.Next.enabled}"
                                     partialSubmit="true"/>
            <af:spacer width="10" height="10" id="s4"/>
            <af:commandToolbarButton id="commandToolbarButton2"
                                     text="#{viewcontrollerBundle.NEW}"
                                     actionListener="#{transactionBean.newTransactionOnClick}"/>
            <af:spacer width="25" height="10" id="spacer1"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.LIMIT}"
                                     id="ctb2"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.WARNINGS}"
                                     id="ctb3"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.INFORMATION}"
                                     id="ctb4"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.DOCUMENTS}"
                                     id="ctb5"/>
            <af:commandToolbarButton text="#{viewcontrollerBundle.TRANS_REP}"
                                     id="ctb6"/>
          </af:panelGroupLayout>
        </f:facet>
      </af:panelStretchLayout>
      <af:popup id="popTrans">
        <af:panelWindow id="pw1" title="#{viewcontrollerBundle.TRANSACTION}">
          <af:panelFormLayout id="pfl1" labelAlignment="top">
            <af:inputText value="#{bindings.TransactionId.inputValue}"
                          label="#{bindings.TransactionId.hints.label}"
                          required="#{bindings.TransactionId.hints.mandatory}"
                          columns="#{bindings.TransactionId.hints.displayWidth}"
                          maximumLength="#{bindings.TransactionId.hints.precision}"
                          shortDesc="#{bindings.TransactionId.hints.tooltip}"
                          id="it2">
              <f:validator binding="#{bindings.TransactionId.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.Designation.inputValue}"
                          label="#{bindings.Designation.hints.label}"
                          required="#{bindings.Designation.hints.mandatory}"
                          columns="#{bindings.Designation.hints.displayWidth}"
                          maximumLength="#{bindings.Designation.hints.precision}"
                          shortDesc="#{bindings.Designation.hints.tooltip}"
                          id="it1">
              <f:validator binding="#{bindings.Designation.validator}"/>
            </af:inputText>
            <f:facet name="footer">
              <af:commandButton text="#{viewcontrollerBundle.OK}" id="cb3"/>
            </f:facet>
          </af:panelFormLayout>
        </af:panelWindow>
      </af:popup>
    </jsp:root>If there's too much or too little info let me know
    Regards
    Paul

  • Region does not pass the value

    Hi,
    I have a region which includes a task flow with a selectonechoice component. This component displays the values true/false and save the value in a managed bean. Also it has the auto submit = true.
    In my jspx page which has the region inside I have a button which is rendered when the above value is set to true. However, the button does not react to the selection of the selectonechoice component unless the F5 button is clicked. Here is the code in the jspx page:
    <af:panelGroupLayout id="pgl1" layout="scroll">
    <af:region value="#{bindings.testbtf.regionModel}" id="r1"/>
    </af:panelGroupLayout>
    <af:panelGroupLayout id="pgl2" layout="scroll" partialTriggers="r1">
    <af:commandButton text="button" id="cb1"
    rendered="#{ManagedBean.Visible==true}"/>
    </af:panelGroupLayout>
    What has to be done in order for the page to be partially refreshed and display / hide the button?
    P.S: if I use the same code, and instead of a region, I use the selectonechoice by itself the above approach works.

    Yes, you need to set the partialTrigger to the selectOneChoice component itself, not the region. It is the component that sends the trigger event. You didn't mention your JDeveloper version, but in newer versions you can click the little arrow next to the partialTriggers field, select "Edit..." and find the triggering component inside the region in the dialog that opens.

  • How to set the size for Popup with contains a Region

    Hi,
    i use ADF 11g (JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) with ADF Faces as Frontend.
    I have a Region (with many content) in a popup. When I call the popup the size of the popup is very small.
    If i set explicit the width and height in px it works, but if I set the width and height in % it doesn't works.
            <af:popup id="p1">
              <af:dialog id="pw2" type="ok"
                         partialTriggers="t1:showBook">
                <af:region value="#{bindings.bookkeydata1.regionModel}" id="r1"
                           inlineStyle="width:850.0px; height:600px;"/>
              </af:dialog>
            </af:popup> It is possible to get the max. height and witdth from the browser-window in a Bean and set it dynamicly to the region?
    To set the size in px is not the best solution I think.
    kind regards
    Martin

    Hi,
    Try setting percentages using af:panelStretchLayout inside a popup.
    Thanks.

  • ResetActionListener does not appear to work for sub regions

    I have input fields that are contained within a region. Outside of this region is my Cancel button which contains the af:resetActionListener tag. When pressing Cancel, input fields outside of the region reset as I expect them to, however, input fields contained within the region do not reset at all. Does the resetActionListener behave this way by design, or was it not designed to handle this case?

    I appreciate the response, however, partialTriggers are not the issue here. I already have a panelGroupLayout, which contains the input fields, as a partial target of the cancel button, and have confirmed that the fields are getting refreshed (by using an outputText which fetches the current time). I believe this is an issue with the resetActionListener's ability to reach input fields contained within a region. Placing a resetActionListener on a cancel button within the region resets the fields as one would expect, however, I need to have the cancel button outside of the region. Here is an idea of the code structure which is not working to reset the input fields with an resetActionListener:
    <af:commandButton text="cancel" id="formCancel"
    actionListener="#{pageFlowScope.myBean.cancelActionListener}"
    partialSubmit="true" immediate="true">
    <af:resetActionListener/>
    </af:commandButton>
    <af:region value="#{bindings.mypagdef.regionModel}"
    partialTriggers="::formCancel"/>
    And it's in this region that my input fields, which are not getting reset, exist. I have stripped out several panel form, group, and stretch layouts, and a template usage to simplify the example code structure, but I don't believe those have anything to do with the problem.
    Edited by: Jesse Stephens on Nov 10, 2009 9:13 AM

  • Navigate to initial task flow in dynamic region with JDeveloper 12c

    I have a home page with a dynamic region and three links and I am working with page fragments. The initial bounded task flow is "btfInicio".
    The requirement is that in each bounded task flow I have to implement a close button to return to the initial bounded task flow. This is my code:
    My Bean for my home page.
    public class AdministradorActividades extends DataControlBean {
        private HashMap parametrosGenerales = new HashMap();
        private String taskFlowId = "/WEB-INF/btfInicio.xml#btfInicio";
        private RichRegion regionPrincipal;
        public String gestionarDatosClinicos() {
            taskFlowId = "/WEB-INF/datosClinicos/btfDatosClinicos.xml#btfDatosClinicos";
            refrescarRegion();
            return null;
        public void refrescarRegion(){
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    My Home page.
    <af:decorativeBox id="db4" theme="medium"
                                                                          inlineStyle="margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;">
                                                            <f:facet name="center">
                                                                <af:region value="#{bindings.regionDinamica.regionModel}"
                                                                           id="rPrin" partialTriggers="::lCli ::lCon ::lRep"/>
                                                            </f:facet>
                                                        </af:decorativeBox>
    My Home page Def:
    <taskFlow id="regionDinamica" xmlns="http://xmlns.oracle.com/adf/controller/binding"
                      taskFlowId="${pageFlowScope.managerRegion.taskFlowId}" activation="deferred"
                      parametersMap="#{pageFlowScope.managerRegion.parametrosGenerales}" Refresh="ifNeeded"/>
    I have tried this inside a fragment from my bounded task flow "btfdatosClinicos" where I have a button , but doesn't work. The home page is not refreshed:
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            AdministradorActividades admActividades = (AdministradorActividades) adfContext.getPageFlowScope().get("managerRegion");
            admActividades.setTaskFlowId("/WEB-INF/btfInicio.xml#btfInicio");
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    If I Implement a control flow case inside my bounded task flow "btfdatosClinicos" to "btfInicio" then I can see the page fragment that correspond to the bounded task flow "btfInicio", but if I clic one of the three links, then the action event is not executed.

    Hi Miguel,
    I think you are complicating the requirement without needing. Why would you put the back button inside your other taskflows? This would be useful just if you are calling those from another bounded taskflows.
    Look what you can do;
    You can create your links for dynamic regions. Cool. But in your decorative box, in the top facet, you can drag a drop the btfinicion and display it as a link (yes, this will be your back button). and that's it. You don't need to mess with partial triggers or refrescar regiones methods.
    Let me know if this doesn't impact your requirement.
    By the way, en que pais trabajas?
    Saludos

  • Skip validation in a region

    Hi,
    I have a taskflow which is just a search form for employee. This taskflow requires a department id so that I could limit
    the search of employees to certain department (for security reasons...)
    This search form displays input text like the list below with only one field that is required.
    <employeeId>
    <employeeLastName>
    <employeeFirstName>
    <nationality>   <----Nationality is required info
    <gender>
    <ageGroup>My problem is this, when I drop the taskflow in a region and I have set an input text to gather the department id.
    When I click submit, the nationality input text in the region is validating. I have set the partial submit on the button
    <af:panelStretchLayout id="psl1">
      <f:facet name="center">
         <af:region value="#{bindings.MyEmployeeFlow.regionModel}"
                      id="r1" partialTriggers=::s1:cb1""/>
      </f:facet>
      <f:facet name="start"/>
      <f:facet name="end"/>
      <f:facet name="top">
         <af:panelGroupLayout layout="scroll"
               xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              id="pgl1">
           <af:inputText label="Department Id" id="it1"
              value="#{pageFlowScope.deptId}"/>
           <af:commandButton text="Submit" id="cb1" partialSubmit="true"/>
         </af:panelGroupLayout>
      </f:facet>
    </af:panelStretchLayout>I dont want the region to validate when I click the submit button. Is this possible?
    JDEV 11g PS4
    Thanks

    Timo Hahn wrote:
    You can set the immediate property to true for you submit button.
    Still I don't understand why the nationality is required if you don't need it required...
    TimoHi Timo,
    I forgot to mention that the taskflow has a submit button itself which I am calling as search button. When I click the search button
    this refreshes the table inside the taskflow.
    I am actually just testing the taskflow if it is being supplied with different department ID.
    I just wanted to know
    if I supply Department ID = 'Accounting':
    the taskflow should refresh and filter the list of employees to Accounting
    if I supply Department ID = 'MobileWorkForce':
    the taskflow should refresh and filter the list of employees to MobileWorkForce
    Putting the immediate attribute skips the validation but only for the first time, after putting a different department id, my taskflow is not refreshing anymore.
    Just let me know if I need to put more information. Thanks

  • Error launching select event in a region

    Hi,
    We are developing an application using JHeadStart and ADF Faces in JDeveloper 10.1.3.1.
    Due to the size of the page code, we have splitted the page in different regions. The page has a master-detail-subdetail structure, where each subdetail has been put in a separated ADF region.
    When changing the selected row in the master table, the values displayed in the detail table are refreshed. But when we do the same in the detail, no action takes place (the data in the subdetail doesn't change, and the code for the selection event listener is not executed either).
    If I don't use ADF regions, the selection event listener code is executed. What could happen? On the other hand, an action event in the region is executed without problems.
    Some pieces of the code:
    - The include of the detail region in the main page:
    <af:region id="ConcepteEco2" value="#{bindings}" regionType="cat.coec.outis.view.region.ConcepteEco2"/>- The declaration of the detail table in the region:
    <af:table id="ConcepteEco2Table" styleClass="scrollable "
                  value="#{ConcepteEco2CollectionModel}"
                  inlineStyle="height: 120px; width:  1000px ; "                     
                  rangeChangeListener="#{ConcepteEco2CollectionModel.processRangeChange}"
                  selectionState="#{ConcepteEco2CollectionModel.selectedRow}"
                 selectionListener="#{ConcepteEco2CollectionModel.makeCurrent}"
                  disclosureListener="#{ConcepteEco2CollectionModel.hideAllDetails}"           
                  varStatus="status"
                  var="row" rows="#{bindings.ConcepteEco2Table.rangeSize}"
                  first="#{bindings.ConcepteEco2Table.rangeStart}"
                  emptyText="#{bindings.ConcepteEco2Table.viewable ? 'No hi ha dades.' : 'Accés Denegat.'}"
                  binding="#{ConcepteEco2CollectionModel.table}"
                  partialTriggers="TipusCctEcoTable"          >- The declaration of the table selection facet:
    <!-- DEBUG:BEGIN:TABLE_SELECTION : outis/pageComponent/tableSelection.vm, nesting level: 11 -->
      <f:facet name="selection">
            <af:tableSelectOne disabled="#{ConcepteEco2CollectionModel.newRow}"
            autoSubmit="true" id="ConcepteEco2SelectOne"
            onclick="javascript:selectCurrentRow('ConcepteEco2:ConcepteEco2',this);">
    <!-- DEBUG:BEGIN:DUPLICATE_ROW_BUTTON : outis/button/duplicateRowButton.vm, nesting level: 12 -->
    <!-- DEBUG:END:DUPLICATE_ROW_BUTTON : outis/button/duplicateRowButton.vm, nesting level: 12-->
        </af:tableSelectOne>
          </f:facet><!-- DEBUG:END:TABLE_SELECTION : outis/pageComponent/tableSelection.vm, nesting level: 11--> Any help would be appreciated,
    Carles Biosca
    BBR Ingeniería de Servicios SL
    www.bbr.cat

    hi,
    in your datagrid call use the property itemClick.
    e.g <mx:DataGrid id="DG" dataProvider="{some provider"}
    itemClick"myFunction())">
    then in your script you can declare the function myFunction
    to get column values of the selected row, use
    DataGrid.selectedItem.ColumnDatafield
    so for the above datagrid with a column name and
    dataField=fullName i can use
    DG.selectedItem.fullName
    HTH
    regards
    abhi

  • Deactivating region (taskflow) when changing showDetailItem in panelTabbed

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

  • Panel Tabbed with regions

    Hi
    I have Panel Tabbed with two items inside - both contains regions inside (static - not dynamic).
            <af:panelTabbed id="pt1" partialTriggers="t1">
              <af:showDetailItem text="Item 1" id="s1">
                <af:region value="#{bindings.emp.regionModel}" id="r1"/>
              </af:showDetailItem>
              <af:showDetailItem text="Item 2" id="s2">
                <af:region value="#{bindings.dept.regionModel}" id="r2"/>
              </af:showDetailItem>
            </af:panelTabbed>Logging initializers and finelizers for task flows inside these regions I noticed that both are triggered when I enter on the page with Panel Tabbed. Only task flow on selected item should be loaded - em I right ? Is there any property to set "loading on demand" regions in Panel Tabbed ?
    Kuba

    Hi,
    depends on the JDeveloper version you are on. For example, you can set a task flow binding (in pageDef) to deferred loading in which case it does what you want it to do. Early JDeveloper 11g R1 releases did not have this feature, in which case the behavior is as you see it. So you may need to check your JDeveloper version, and if it is an upgraded JDeveloper 11g application, check the deferred setting on the task flow binding
    Frank

Maybe you are looking for

  • Microsoft Access report to pdf-hyperlinks don't work

    Hi, Does anyone have a solution to hyperlinks not working when a Microsoft Access report is converted to a pdf?  The hyperlinks work when I am in the Access report, but once I convert to a pdf (Acrobat 9), the links don' t work. Thanks, Jamie

  • Check Box in SAP Business Partner

    Hello Everybody, I'm working with BUPT and trying to place a check box in SAP Business Partner (Role: MKK). Actually the Check box is delivered from SAP standard (Function Group: FSBP_05 and screen 0201) and I'm trying to custom it under Partnerdaten

  • Significance of AirPort Icon with an upward pointing arrow?

    I think I may have exceeded my competence level here !! I volunteered to help a friend who was given a MacBook Pro for Christmas. She has never used a computer before but we decided that the most important thing for her was to have internet access. H

  • Regarding Modification In Standard Tcode VF01

    Hi Friends,           In Transaction VF01 i need to add some check condition on MRP of Article before saving Billing Document............... if that condition satisfied than and than billing document should be saved.....otherwise give some error mess

  • Regarding pp & wm

    Hi all, Can  u please tell me the application names,table names & data source names for the following 2 subject areas. 1.Warehouse Management (WM) 2. Production Planning (PP) and also please tell me the procedure for how to extract the data from r/3