ADF Region to Parent Communication

ADF 11.1.1.6, jdk 1.6.37, Windows 7 x64
Use Case:
I have a Parent with a region (train).
I have a button in the region(jsff) on the second page of the train (add record) and a button (Save) located in the parent page (jspx).
When I enter the form the save should be disabled until the add record is pressed.
I have tried a contextual event - without success. The event triggers OK - but there is no "real" communication to the button to tell it to look at the value.
I use a "buttonPressed" variable in the AM to store the state. (getters and setters do the major work of keeping the AM in sync)
Basically I want the event to trigger the refresh of the button in the parent page - so it will look at the value in the AM.
I want to keep the button disabled until a record is added in the second page of the train.
Anyone solved this type of issue before? (it is similar to the issues around dirty records in a region not propagating to the parent)
It would be simple if the region could do a programmed refresh on the parent button. (Is there a way to get the parent context? and would the backing bean still be active?)

Hi,
you need a mix of two for this usecase
1. RegionNavigationListener to tell when you enter the form. Fromthe region navigation listener you can tell the viewId the page fragment in the region has. So this will then allow you to disabled the button in the parent view
2. You need to pass a managed bean in view scope from the parent page as an input parameter to the region (task flow). This method will need to have a method that understands how to access the command button in the parent page and enabled it (+ refresh with PPR). Because you "injct" the managed bean from the parent view into the task flow, its context remains in the parent view. So you can look up the command button on the Faces Context (you cannot use JSF component binding in a bean that is in view scope). Alternatively you create a second bean in the parent view, which is in backingBeanScope and that holds the JSF component binding to the button. You then access the bean in backing bean scope (using EL in Java) from the managed bean in view scope to get a handle to the component binding)
Frank

Similar Messages

  • Dynamic JDBC Credentials and using ADF Region ERROR

    Hi,
    I used solution by Steve Muench, Dynamic JDBC Credentials (for ADF Faces Rich Client)
    (129.     11g Dynamic JDBC Credentials for Model 1, Struts, Trinidad, and ADF Faces Rich Client 11.1.1.0.0 06-AUG-2008), but it works not correct in case of using ADF Dynamic Region (or simply ADF Region).
    I have added in ViewControllerJSFRichFaces a page (main.jspx) including ADF Dynamic Region consisting of 2 simple tasks flows. Action of the Login button, if login and password are correct, redirect to main.jspx
    There are to cases.
    1) Login and password are correct:
    In this case all work fine.
    2) Login and password are not correct:
    It does not work. redirect to login.jspx does not occur as it is expected, but the following page (main.jspx) is loaded, herewith thrown exception: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    I would be very grateful you for help.

    Hi,
    hard to say from your description if this is a bug or an implementation problem. Note that errors that occur in regions are not handled by the exception handler of the the parent page and require special handling within the region. In other words, if the problem is in the region then it needs to be handled in here. I think the right strategy here is to not show the region until a valid connection exist. Is the login performed from the parent page ?
    Frank

  • ADF Region not getting refreshed after Commit

    Hi everyone!
    I'm having some trouble with a region that is disturbing me for more than 2 weeks, its true guys, I tried everything!!
    My parent page is a normal ADF .jspx page that contains inside it a task-flow call. The first task-flow activity is a router, after sending a String
    to router it chooses the region activity that fits the page (in this example I always pass the same value, same String).
    After the router is called then it delegates to "ExecuteWithParams" method call before calling my final region that have its query executed with
    parameter set inside task-flow.
    The region is refreshed (refresh="ifNeeded") when I change row inside a table in ParentPage, all fine here.
    The problem is:
    - After any Commit (with navigation case or executable binding) is issued inside Region the region save its state and does not refresh anymore, even if task-flow parameters change.
    Already tried CacheResults="false" on iterator too.
    I'm using Jdeveloper 11.1.2.1.
    Thanks in advance!!

    Hi,
    so I think the shirt summary of your problem is that an ADF region doesn't refresh after it issued a commit. Sounds like a bug to me if this reproduces in a test case. Do you have a testcase based on the Oracle HR schema ? If so, send it my way in a zip file you rename to ".unzip". My mail address is in my OTN profile. Note that bugs I file are not visible to customers. So if you need to keep track of any state of the issue, you need to file a service request with support yourself.
    Frank

  • How to Get the Parent Community of a Community Using PRC

    Greetings,
    Using the PRC, I am trying to build a heirarchy table of all of the Communities a particular user has access to.
    Stated another way, I want to be able to build a tree of all of the communities a user can access, and display them in an explorer type graphical object(treeview).
    Through ICommunityManager I CAN get all of the communities (step 1). But beyond that, I am unable to find the communities' parents(I have found no way in the PRC to ask for a parent community) so I can iteratively start the treck up to the top of the heirarchy and down to the bottom.
    The Adaptive tag library has tags to get parent, sibling, and child community URL's of the current and any specific community, so I know it can be done, but the tags do not help me to build the tree beyond the current community's parent (At least I have not figured out how).
    Has anyone done anything like this? Could you direct me to the appropriate API's or approach?
    Thank You.

    Have you thought about using pt:standard.tree instead of rolling your own?
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • Pages, Subcommunities & Knowledge Directory Link of Parent Community

    Is there an easy way to get the pages, sub-communities, and knowledge directory link of a parent community? Essentially I need to get all the information that GetCurCommPages provides, but for a parent community.

    What did you do on the computer before this problem arose? Updating, cleaning, what?
    Have you tried the applications in another user account on the computer? Do so and if you dont' have an another account you can create one in System preferences > accounts. Tell us the result.
    As you have problems with TextEdit to I think you have a system problem affection the applications you mentioned. Do some maintenance like Repair permissions, delete cash etc. Onyx is a frre applications that you can download from http://www.titanium.free.fr/download.php

  • Get Parent Community from Current Comm using the G6 PRC

    Can anyone provide or point me to a sample of code that gets the Parent Community ID from the current community using the G6 PRC? I can find samples of doing this in this discussion, but they appear to reference older versions of the EDK. Ideally, given the current community ID, I would like to walk backwards through the hierarchy until I find the root community (the community with no parent ID).
    Thanks in advance,Jeff

    Have you thought about using pt:standard.tree instead of rolling your own?
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • How to reset viewScope for a particular ADF region

    I have following usecase.
    I navigate to a page (say cloud home page). while calling this page couple of parameters are set in view scope.
    1. viewScope.keyAttrs.target
    2. viewScope.keyAttrs.type
    The page has a ADF region ( say inventory) embedded.
    For this region I want above parameters in view scope to be null. Can I set a flag or something to make it null?

    My requirement is specific to Enterprise Manager so closing the thread.

  • ADF Region Refreshing Mechanism

    Hi all,
    i have a doubt on how ADF region refreshing mechanism works. Let me explain my doubts with an example. Suppose you have a page .jspx inside whom you put a region with the following relevant properties:
    - Refresh: ifNeeded
    - Activation: deferred
    - Parameters:
    ID Value
    param1 #{pageFlowScope.myBean.param1}
    param2 #{pageFlowScope.myBean.param2}
    paramN #{pageFlowScope.myBean.paramN}
    As you can see, the region is instructed to re-execute its task-flow everytime any of its parameters change. What i don't understand is if the parameters must be changed in particular ways that let the region know that it must be re-executed or they can be changed in any way, for example from within the method of a managed bean: returning to the example above, if inside myBean i have a method like the following:
    public void refreshRegion(){
    setParam1(new Param1());
    the region gets re-executed everytime i call this method?
    If not so, could you please explain how exactly the region detects that one of its parameters is changed and then it must re-execute its task-flow?!?
    Thanks in advance!
    Bye!
    Fabio

    Hi,
    thanks for the reply. Is there some reason in particular to use variables stored at requestScope level? The mechanism used by regions to refresh theirselves don't should be the same regardless the scope at which their parameters are stored?
    As a technician, i imagine that the only way regions are able to automatically detect the need to re-execute their task flow is putting theirselves in constant listening to eventual changes in the value of their parameters. As far as i know, this is the only way for regions to detect the exact moments when refresh is required, despite the way their parameters are updated. If this is not the case, then i think the assumption according to which regions are able to refresh theirselves no matter the way their parameters are changed is wrong, and i'd like to know the real mechanism that hides behind the refresh of ADF regions.
    You said that:
    " Now, in any of the server code, if you are changing anyone of the above requestScope values, the taskflow would be re-executed "
    Please, let me ask you: even if the code that changes the value runs inside a thread different from the "ADF thread"?
    Thanks again,
    Bye!
    Fabio

  • [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

  • Adf region is not displaying anything

    Hi,
    I am using adf region to display the data.For this I have created one bounded task flow with page fragments.
    In the page fragment I created one output tag to display something.this page fragment is dropped in task flow.
    Then I made one JSP page and drag the task flow and drop it as the region.The problem is it not displaying any data.
    I am using jdev 12. Can you please tell me whether I am doing anything wrong.
    Thanks,
    Harsh

    What do you mean by
    Then I made one JSP page and drag the task flow and drop it as the region.
    Did you create a jspx page or a jsf page. Depending on the fragment type it only works on a jsf page (jsf 2.0 page). 12c default is create fragments as 'Facelets' which only work in jsf Pages. If you want to use a jspy page you have to create the fragment as 'JSP xml'.
    Timo

  • Templating Mechanism for ADF ? Tiles, ADF Region, Facelets

    Hi,
    this is ashish here. Please let me know which templating mechanism is best for use with ADF Faces.
    1.Tiles or
    2.ADF Region or
    3.Facelets
    Please reply as early as possible.
    Thanks in advance.

    Hi Frank,
    Can you please suggest me a tutorial(.pdf) or a sample or hyperlinks where i can find the right stuff.
    Thanks in advance.

  • ADF region does not show

    Hi,
    I have a jsff page that I want to add a region (via bounded task flow & corresponding jsff file).
    When I add an existing task flow (that appears as region in another page) everything works fine.
    However, when I add a newly created task flow, if does not show anything when the app runs. However, it shows fine in the JDev preview.
    After having done this many times, I believe that the newly created task flow is fine (analogous to the existing one that works).
    Any idea what can be wrong?
    I am using JDeveloper 11,1,1,6.0

    Yes I do have a default activity.
    The issue tuned out to be about permissions and authentication. We just added ADF authentication; thus you have to added permissions to view these newly created resources (taskflows).
    Given that this was the first tasfklow that was added after adding ADF authentication, we overlooked this.

  • About contentRegion in ADF regions

    Hi,
    i created regions for globalMenu,mainMenu,leftsideMenu.everything is working fine but pagecontent is not working.i cretaed seperate region for pagecontent and call it as variable in one page. all are working fine but page content is not displaying.error is "FINE: 'var' attribute is null."
    i included region like this
    <af:region id="MainTemplate" regionType="MainTemplate">
    <af:attribute name="contentRegion" value="AlsHomePage"/>
    <af:attribute name="title" value="home"/>
    <af:attribute name="selectedMenuTab" value="menu1"/>
    <af:attribute name="pageTip" value="Home region."/>
    </af:region>
    in region-metadata.xml
    <component>
    <component-type>AlsHomePage</component-type>
    <component-class>oracle.adf.view.faces.component.UIXRegion</component-class>
    <component-extension>
    <region-jsp-ui-def>/regions/AlsHomeRegion.jspx</region-jsp-ui-def>
    </component-extension>
    </component>
    after running the AlsHomePage error is error is "FINE: 'var' attribute is null."
    please give the solution.
    Thanks,

    I am also trying to customize the skin for menu tab. However, it doesn't use the selectedIcons.
    My JSP is :
    <af:menuTabs var="item" value="#{Application.views}" >
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{item.label}" action="#{item.select}" selected="#{item.selected}" />
    </f:facet>
    </af:menuTabs>
    The demo uses goCommandItem and doesn't use facet "nodeStamp". I tried to change the property to selected ="true" and it still doesn't use the right icon. Could anyone let me know if it is a bug?

  • Problems with ADF regions.

    Hi,
    I have a simple project with 1 jspx page and one jsff page. The jsff page is encapsulated in a taskflow and dropped on the jspx page as a region. However when running the jspx i recieve the follwing error:
    java.lang.IllegalStateException: The expression "#{bindings.OnlineProspectusFlow1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "Onlin1") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.OnlineProspectusFlow1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "null".  Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:437)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:106)
         at jsp_servlet._page.__index_jspx._jspx___tag13(__index_jspx.java:717)the jsff page has no content but i am recieving the same error every time i re create the project.
    Thanks,
    Dean

    Thanks, but i am still recieving the same error everytime i consume a taskflow as a region. i have checked the page def files and databindings.cpx and everything looks in order.
    Does anyone have any sugestions?
    Thanks
    Dean

  • How to invoke a popup programatically from adf region

    Hi All,
    I have included a task flow as a region in my home.jspx page .
    My taskflow contains a assets,jsff page where on save button click i want to show some popup message programatically
    i mean i want to invoke showpoup code in my save action listener .
    I got some code snippet but this is working only incase if popup is invoked from jspx .
    public static void invokePopup(String popupId, String align,
    String alignId) {
    if (popupId != null) {
    ExtendedRenderKitService service =
    Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    //Add hints only if specified - see javadoc for AdfRichPopup js for details on valid values and behavior
    if (align != null && alignId != null) {
    showPopup.append("hints[AdfRichPopup.HINT_ALIGN] = " + align +
    showPopup.append("hints[AdfRichPopup.HINT_ALIGN_ID] ='" +
    alignId + "';");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    popupId +
    "'); if (popupObj) popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(),
    showPopup.toString());
    *************************************************8
    Please let me know what changes i need to do inorder to call thid popup invoke method from jsff.
    Thanks with regards ,
    Arun.

    Hello lucbors, This problem sounds like one I am trying to solve as well.
    I have a popup on my jspx page that I want to call from the bean for my jsff.
    My problem is in the step "get a hold on to a rich popup instance, which you can do by referencing a JSF component binding"
    I cannot seem to find the instance of that popup.
    The popup is a property in a managed bean that is registered in the adfc-config as session scope. I found another thread that said to
        //EmployerBean is the name of the managed bean for my jspx
        //  this code is in an event handler in GipsBean, the backing bean for my jsff
        HttpSession session = (HttpSession)context.getExternalContext().getSession(true);
        EmployerBean employerBeanInstance = (EmployerBean) session.getAttribute("EmployerBean");
        if(employerBeanInstance == null)
          employerBeanInstance = new EmployerBean();
          session.setAttribute("EmployerBean", employerBeanInstance);
        }Can you offer some insight? I am new to ADF, so my approach may be very wrong.
    Thanks

Maybe you are looking for

  • Sequence Error in AP Batch Payment Form

    Hi all, i've customized AP batch payment form via custom.pll enabling check_date in some cases. It works fine, but after updating the date i receive the following error message: "APP-FND-01702:An assignment does not exist for these parameters and one

  • RE: ipod touch is stuck ?

    My ipod touch keeps crashing maybe once or twice a week at the moment. It freezes then I get the apple screen, which then distorts, then I get lines of code and after a random holding down of buttons it restarts but just hangs on the apple logo. At t

  • Cumulated amounts in the Query

    Hi Sap Developers, I need some hints to create a query. I haven't found any solutions until now. I've got an infocube with amounts grouped by day, which are gonna be displayed in the query using the cumulated format as follows: 1/jan           2/jan 

  • Interactive reporting in alv

    hi experts .. i has a query of how to do interactive reporting in alv,s what are the function modules i can use to attain interactiveness. .? Regards, sujatha

  • Me21n =   subtotal 3

    hi expert , i am abaper  , there is problem in P.O in me23n " From which tcode or screen the below value come KZWI3 = Subtotal 3 from pricing procedure for condition " this is EKPO-KZWI3 which is Subtotal 3  come in ekpo table if this value is there