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?

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

  • What about security in adf faces application ?

    It seem that the documentation has a little bit changed about security for adf faces application.
    SRDemo J2EE sample application only implemented the security at the web container and may be for the session beans (don't remember) by using security-role and security-constraint in web.xml configuration file.
    It seem that the documentation recommand now to implement adf security and didn't find anymore the reference to the standard j2ee security implementation.
    We found also that the security constraints checked by the web container was sometimes ignored and the container didn't ask us to login before displaying a page.
    Is ADF security a clear Oracle recommandation for ADF Faces application ?
    What about j2ee security for this type of application (why it is not recommended to use it) ?

    Hi,
    there is no single recommedation about security because security ideally is applied on several levels to implement security in depth. Container managed security with J2EE is a good option to secure page access and - if using EJB - to propagate the user identity for method level access control.
    Using ADF Security, which is security added to the binding layer based on JAAS, a second layer of the security onion becomes available that allows you to define which user is allowed to perform which operation on an iterator or attribute binding. This goes beyond of what container managed security can do for you.
    The thrid layer is business layer security and eventually database security.
    For Oracle Open World we will have a developmengt track and one of the presentation I am giving with Ric Smith from our team is about end-to-end application security for ADF Faces, ADF, ADF BCor TopLink/EJB and the Oracle database.
    The plan is to also write this up in a paper, but this would come late because of other priorities I have on my plate. So attending OOW probably is the best option for you to get the big picture
    Frank

  • 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

  • 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

  • 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

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

  • 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

  • How to Use ADF Region With Data Bound Controls in JDeveloper 10g

    I want to use Data Bound ADF Components in Region. Is there any way to acheive this. I want to get Employee Information from a View Object and display it in a region and use this region on different pages.

    I could not understand the dynamic part.
    Actually the problem is that i use Data Controls in Region but when i use the region in other pages it does not display the Data Control.
    Let say i have a data bound outputtext field.
    <af:panelLabelAndMessage label="#{bindings.EmpmasterinfoViewEmployeeid.label}">
    <af:outputText value="#{bindings.EmpmasterinfoViewEmployeeid.inputValue}"/>
    </af:panelLabelAndMessage>
    But this field does not display any thing.
    How i will be able to diplay other data bound controls like table etc.
    Thanks for your reply

  • How to create ADF region without Task Flow

    I want to divide my page into different regions, but I don't want to have any bounded task flow under each region. I want to include Page Fragment inside the Region.
    I find the example of creating Region using some page flow, would you please help me, how to create Region that contains only page fragment, actually the problem I am facing, I don't know what I will provide in value attribute in Region tag, that is expecting some Region Model.

    Hello, RajeshBiswas.
    A solution could be to generate 'MultiTaskFlow' for indeterminate number of regions or multiple regions on the same page.
    It would be necessary to create a single file to define all participating 'TaskFlows' on page:
    1. Select 'new -> ADF Task Flow (JSF/Facelets)'
    2. May include all 'jsff' files as:
    <task-flow-definition id="genericTaskFlow1">
        <default-activity>case1</default-activity>
        <view id="case1">
          <page>/pages/case1.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
      <task-flow-definition id="genericTaskFlow2">
        <default-activity>case2</default-activity>
        <view id="case2">
          <page>/pages/case2.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    It should create a Managed Bean to implement the List of Task Flow Bindings:
    1. Create a new Class with de following code:
        private List<TaskFlowBindingAttributes> mTaskFlowBindingAttrs = new ArrayList<TaskFlowBindingAttributes>();
        public MultiRegionBean()
            TaskFlowBindingAttributes tfAttr = new TaskFlowBindingAttributes();
            tfAttr.setId("region1");
            tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow1"));
            mTaskFlowBindingAttrs.add(tfAttr);
            tfAttr = new TaskFlowBindingAttributes();
            tfAttr.setId("region2");
            tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow2"));
            mTaskFlowBindingAttrs.add(tfAttr);
        public List<TaskFlowBindingAttributes> getTaskFlowList()
            return mTaskFlowBindingAttrs;
    2. Define this new class into the 'adf-config.xml' file as Managed Bean with 'pageFlow' scope.
      <managed-bean id="__1">
        <managed-bean-name>managedBeanName</managed-bean-name>
        <managed-bean-class>className</managed-bean-class>
        <managed-bean-scope>pageFlow</managed-bean-scope>
      </managed-bean>
    At the page definition, add a MultiTaskFlow inside <executables> tag:
        <multiTaskFlow id="multiTaskFlow1" taskFlowList="#{pageFlowScope.multiRegionBean.taskFlowList}"
    On the page, insert regions in the desired locations. For example:
        <af:group id="g2">
            <af:panelAccordion id="pa1" inlineStyle="width:50%; height:400px;">
                    <af:showDetailItem text="showDetailItem 1" id="sdi1">
                    <af:region id="r1" value="#{bindings.multiTaskFlow1.taskFlowBindingList[0].regionModel}" >
                    </af:region>
                    </af:showDetailItem>
            </af:panelAccordion>
            <af:panelAccordion id="pa2" inlineStyle="width:50%;">
                    <af:showDetailItem text="showDetailItem 1" id="sdi2">
                    <af:region id="r2" value="#{bindings.multiTaskFlow1.taskFlowBindingList[1].regionModel}" >
                    </af:region>
                    </af:showDetailItem>
            </af:panelAccordion>
        </af:group>
    Reference: 21.10 Configuring a Page To Render an Unknown Number of Regions

  • ADF Regions - Embedding region pagedef & Page load

    Hi,
    I'm working with regions in JDev 10.1.3.2. The problem I'm having is this: I have a page that uses a region with its own pagedef. So, I added a <page> element in the parent page's pagedef referencing the pagedef of the region and set the 'value' attribute in the <af:region> tag to the page element in the binding container.
    So far so good, the inclusion of the pagedef works fine. The thing is that the region has some "On page load" behavior, implemented following one of Steve Muench's not yet documented apps. In the pagedef of the region I specify the 'ControllerClass' attribute to a backing bean with an EL. If I run the page every thing is rendered but an error appears saying "Missing class #{...}" and therefore the onPageLoad behavior is not executed. If I specify the ControllerClass with the fully qualified name of the class a "ClassCastException" is thrown.
    If I run the page as a stand-alone jsp it works fine, the problem must have something to do with the whole pagedef embedding business...
    Any help or insight is appreciated.
    Thanks,
    Yoel

    Third repost.
    I'm starting to get the feeling that I'm being completely and utterly ignored. Either I didn't explain the problem well or the problem isn't solvable. I just want anyone, and I mean anyone at all to tell me:
    a) "The problem has no solution, wait for the production release of JDev 11"
    b) "I'm having the same problem"
    c) "We are working on it"
    d) "Please don't ask anything else about regions, we released them without proper testing. So some things are going to work and the others may work or not."
    Yoel

  • ADF Region Security

    Hi,
    We have a bounded task flow (departmentlist) embedded as a region in a page (EmployeeSummary). The EmployeeSummary has an associated taskflow and PageDef. We are trying to secure this page using ADF authorization.
    When we go to the summary page, DepartmentList is not displayed. Authorization exception is thrown. We have tried by providing permissions for an user to the EmployeeSummaryTaskFlow as well as EmployeeSummaryPageDef. Our expecation is that since the pagedef is given permission, the embedded regions also get the permissions.
    How to achieve this with out explicity giving permission to departmentlist taskflow? (We have so many such regions in the page so we want to control access at top level page.
    Thanks,
    Rama

    Does granting departmentlist taskflow to 'authenticated-role' work for you? That way every authenticated user would have access to it, but since you only include it as a region on a page you control access to it on the consuming page.
    Pedja

Maybe you are looking for

  • Logc 7.1 drops when triggering MIDI loops?

    I have an Akai sampler, and when i trigger loops within logic 7 via midi, at the end of every bar the Logic stops the loop short of the bar? So if i do a 4 bar loop the re-triggering is fine until it comes around to loop back to the start again?!? wh

  • Pageup and pagedown not working in firefox

    pageup and pagedown not working in firefox. I read in other posts to install the latest graphics driver and I did. I also uninstalled flashplayer and downloaded and installed the latest version.

  • Send async message

    Hi all, in my application the user can start a long running job (one or more SQL query) which is executed in a separated thread. I'd like to notify to the user the end of the job (if he is still logged in), but I don't know how. CAn somebody help me

  • How can I keep people from saving images from my website?

    How can I keep people from saving images from my website?

  • Message no. BS043

    Hi In the Work Flow we have configured some additional events using transaction BSVZ. Whenever we change the status with reference to object BUS2000115 the respective event in work flow should get triggered. In the TCode SW01 when I see for the Work