Problem Refreshing Dynamic Region

Hi ,
I am facing problems in refreshing the dynamic region. Here is the usecase :
One JSPX page : TestDynamicTaskflow.jspx
First Taskflow : LinksTF -> Has one page with 3 command Buttons and one dynamic region.
On click of 1st and second command button link tf-1 should be displayed and for third command button  tf2.
Second Taskflow : tf-1    -> Taskflow has one jsff page with a inputText field ( required = true )
Third taskflow : tf-2  -> Taskflow has one  jsff page with a inputText field ( required = true )
Problem : Click 1st command button and tf1 is loaded. Now enter some value in inputText and click commandButton2 ... tf-1 is loaded but inputText retains the entered value... This is what is issue .

Hi,
the task flow is reloaded as you should be able to tell when setting a print message to be invoked in the task flow initializer. I assume the problem is with the text component not resetting its value. So its a JSF lifecycle problem, not a region issue. Have the command link switching the task flow, issuing
oracle.adf.view.rich.util.ResetUtils.reset(regionId_in_here);
Frank

Similar Messages

  • PPR problem with dynamic regions

    Hello,
    I have an application which starts by displaying a two buttons, each of which is supposed to display a particular bounded task flow in a dynamic region. The first task flow has a .jsff which has a table that displays records in a richtable... no problem there. The second task flow displays records (from a different table in the database) in a PanelFormLayout using inputtext's.
    Now the problem.
    When the first task flow is set to display by default when the application is run, the table works as it should. I click the button to switch the dynamic region to the second task flow and that is fine, but any navigation button I click gives me the following error...
    SEVERE: Server Exception during PPR, #4
    javax.el.PropertyNotFoundException: Target Unreachable, 'Col2Id' returned null
    Now, if I setup this second task flow to display by default, it works as it should.
    The actionlistener I use to switch the tasks in the dynamic region is as follows
      public void testListener1(ActionEvent actionEvent) {
        String varTask;
        //the two buttons have btn1 and btn2 as the id's, so this returns '1' or '2' respectively to generate the correct taskFlowId below
        varTask = actionEvent.getComponent().getId().substring(3);
        // this builds the task flow id based on the value of the variable determined above
        taskFlowId = "/WEB-INF/tasks/task-flow-" + varTask + ".xml#task-flow-" + varTask;
    }and it does switch the task flow to the correct one.
    The .jsff for the second task flow is as follows
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelBox text="PanelBox1">
        <f:facet name="toolbar"/>
        <af:panelFormLayout>
          <af:inputText value="#{bindings.Col2Id.inputValue}"
                        label="#{bindings.Col2Id.hints.label}"
                        required="#{bindings.Col2Id.hints.mandatory}"
                        columns="#{bindings.Col2Id.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Id.hints.precision}"
                        shortDesc="#{bindings.Col2Id.hints.tooltip}"
                        id="textCol2Id">
            <f:validator binding="#{bindings.Col2Id.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Col2Desc.inputValue}"
                        label="#{bindings.Col2Desc.hints.label}"
                        required="#{bindings.Col2Desc.hints.mandatory}"
                        columns="#{bindings.Col2Desc.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Desc.hints.precision}"
                        shortDesc="#{bindings.Col2Desc.hints.tooltip}"
                        id="textCol2Desc">
            <f:validator binding="#{bindings.Col2Desc.validator}"/>
          </af:inputText>
          <f:facet name="footer">
            <af:panelGroupLayout layout="vertical">
              <af:panelGroupLayout layout="horizontal">
                <af:commandButton actionListener="#{bindings.First.execute}"
                                  text="First" disabled="#{!bindings.First.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Previous.execute}"
                                  text="Previous"
                                  disabled="#{!bindings.Previous.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Next.execute}"
                                  text="Next" disabled="#{!bindings.Next.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Last.execute}"
                                  text="Last" disabled="#{!bindings.Last.enabled}"
                                  partialSubmit="true"/>
              </af:panelGroupLayout>
              <af:commandButton text="Submit"/>
            </af:panelGroupLayout>
          </f:facet>
        </af:panelFormLayout>
      </af:panelBox>
    </jsp:root>the adfc_config.xml is as follows
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="start">
        <page>/start.jspx</page>
      </view>
      <managed-bean>
        <managed-bean-name>backing_start</managed-bean-name>
        <managed-bean-class>programs.view.backing.Start</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1start.jspx-->
      </managed-bean>
    </adfc-config>Does anyone have an idea what gets missing or confused at the PPR level when I switch task flows in a dynamic region in this manner, and how can it be corrected.
    Thanks

    Hi Frank,
    When I try changing the managed bean scope from backingbean to pageflow (I also had to change the binding in the PageDef.xml file as well), it displays a blank screen when starting and the server log file has the following error message.
    <Apr 27, 2009 8:28:35 AM CDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@164d2b3 - appName: 'FcnTestApp1', name: 'FcnTestApp1-ViewController-context-root', context-path: '/FcnTestApp1-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1c5c9ca[
    ]] Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'backing_start' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:248)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         Truncated. see log file for complete stacktrace
    >
    Any idea what might cause this?
    Thanks

  • Problem Refreshing Report Region

    I have a Report Region, based on a SQL Query. It works fine, and returns the records Queried.
    My problem, is that it is not Refreshing, after page Refresh. I even tried Logiing out, and then back in. In my latest attempt, I deleted ALL the records, logged out, and then back in. The prior Report Results were still there. It seems like it is Cached somewhere. The Caching is set to Not Cached.
    I am stumped.
    Please give me advice. Thanks!

    I have seen that only when I thought my query is selecting from a particular table but that wasn't the case. You could create an empty copy of your table and replace the original one in the sql just to see what happens.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem reentering task flow in dynamic region

    Hi All,
    I have problem with reentering task flow in dynamic region.
    JDeveloper/ADF 11.1.2.3.0
    Use Case:
    Application contains bussines modules(implemented as bounded task flows) displayed in dynamic region.
    In some modules, default activity is Method Call activity which performs some validations(input parameters, state of records in db, etc.)
    and if some conditions are not satisfied, shows message to the user and exits module (navigates to Task Flow Return activity).
    Problem:
    If user tries to start the same module again, nothing happens(message is not shown).
    If user choose some other module and after that start first module, message is shown(so I suppose this means that task flow was correctly exited first time but dynamic region state was not refreshed).
    Current implementation info:
    Dynamic region has attached regionNavigationListener which resets taskFlowId variable in dynamic region bean if regionNavigationEvent.getNewViewId() == null but this listener is not called if Method Call activity directly navigates to Task Flow Return activity.
    (if user navigates to Task Flow Return activity from button on some page, this works as expected)
    Also, I tried to reset taskFlowId variable from task flow finalizer and to programatically refresh region binding, but this still doesn't work.
    So, am I missing some point about refreshing dynamic region or this is bug in ADF?
    Thanks,
    Dario

    I don't have any popup.
    There is only page which contains dynamic region.
    This dynamic region can be empty or can contain one of business modules(bounded task flows) which are invoked from menu.
    In some cases business module must exit(by invoking task flow return activity) immediately after invocation(because some business validations fail).
    In this case, module will show message to the user.
    Problem is that if user call the same module again, nothing happens(message is not shown) because regionNavigationListener(which only purpose is to reset taskFlowId variable when business module exits) is not triggered when Method Call activity(which is default activity in BTF) navigates to Task Flow Return activity.
    Also, I tried to use Router activity instead Method Call, but problem still exists(regionNavigationListener is not triggered).
    Obviously, regionNavigationListener is called only if navigating from page(or fragment) and this is probably a bug in ADF so I opened SR.
    Edited by: kdario on Oct 27, 2012 5:04 AM

  • Form refresh issue inside dynamic region

    Hi
    I have a problem with dynamic region. I have a menu on left side containing two buttons and dynamic region on right side. On clicking one of the button employee form open inside the dynamic region but I am unable to navigate between records by clicking form first , next , previous or last buttons.

    I am new learner of Jdeveloper. I run this tutorial http://baigsorcl.blogspot.com/2010/06/working-with-dynamic-regions-in-oracle.html. I am able to learn about how to dynamically bind the taskflow id. When I click the form button on left side of menu Employee Form open in right side of splitter but its navigation button are not working.

  • Dynamic Region: what am I doing wrong?

    Jdev. 11.1.2.3.0
    I have been having problems with dynamic regions.
    I have two adf forms; mainPage.jsf and mainRegion.jsf. I have also two adf forms (page fragments), employee.jsff and department.jsff, I have also two bounded task flows; employee-task-flow and department-task-flow. In the mainPage.jsf, I have two buttons, employee and department.
    What I want to achieve is that when a user clicks the department button, the department-task-flow will be rendered on the mainRegion and when the employee button is clicked, the employee-task-flow will be rendered.
    In the mainRegion.jsf, I dragged the department-task-flow on to it and I choose dynamic region. I also dragged the employee-task-flow and I choose dyanmic link. The department button is bound to this method#{TestRegionManagedBean.departmenttaskflow}  while the  employee button is bound to this #{TestRegionManagedBean.employeetaskflow}. 
    When I ran the application, the mainPage displays, however, when I clicked on any of the buttons, it does not display anything.
    This is the managed been:
    package view;
    import oracle.adf.controller.TaskFlowId;
    public class TestRegion {
    private String taskFlowId = "/WEB-INF/department-task-flow.xml#department-task-flow";
    public TestRegion() {
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String employeetaskflow() {
    taskFlowId = "/WEB-INF/employee-task-flow.xml#employee-task-flow";
      return null;
    public String departmenttaskflow() {
    taskFlowId = "/WEB-INF/department-task-flow.xml#department-task-flow";
      return null;

    Try as follows
    public void launchPage(String taskFlowId) {
        getDynamicTabRegion().setTaskFlowId(taskFlowId);
        refreshCurrentPage();
    protected DynamicTabRegion getDynamicTabRegion() {
        FacesContext fc = FacesContext.getCurrentInstance();
        DynamicTabRegion dynamicTabRegion =
            (DynamicTabRegion)fc.getApplication().evaluateExpressionGet(fc,
                                                                        "#{viewScope.dynamicRegion}",
                                                                        Object.class);
        return dynamicTabRegion;
    private void refreshCurrentPage() {
        FacesContext context = FacesContext.getCurrentInstance();
        String currentView = context.getViewRoot().getViewId();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot x = vh.createView(context, currentView);
        context.setViewRoot(x);

  • Dynamic region table with binding problem

    Hi. I'm using jdev 11.1.1.3 and ADF full stack.
    My app uses single page approach with ADF libraries and a dynamic region to show content. Main page includes a menu bar which is created on session startup and is used to load task flows from libraries.
    I have a class to provide some table functionality like CRUD, multi-row delete, etc and I need to reuse with every table included in libraries.
    To do this, in main web app I have a managed bean to hold table binding and to provide this common functions to all fragments if needed.
    I think it must be in request scope as fragment changes.
    Here's the problem: when I navigate to a fragment which contains a table with binding, first time goes well,
    but next time table, when fragment changes,new table displays without header or without data.
    If I go to another fragment without binding and return to a fragment with problem, it displays well. With fragments without table binding, it works OK.
    I've tried changing scope of this 'general' managed bean, but same thing. If I put a bean for each fragment, it works OK.
    So, how can I 'share' this managed bean through every table? Any suggestions? is it possible?
    Please, help me ....
    Thanks,
    DEMR.

    I am seeing a similar problem in my app. I have a main menu that drives a dynamic region. If the task flow that gets displayed in the dynamic region also contains a dynamic region, when the inner dynamic region is refreshed to point to a second task flow, the page does not render correctly. The errors we have seen include data in tables not being displayed in some cases, and PPR errors in other cases. In both cases, if the inner dynamic region is replaced (by a single bounded task flow with navigation logic in a template, for example) the errors go away. There appears to be issues involved with including a dynamic region within a dynamic region.
    Have you made any progress on solving your issue?

  • Issue with refresh of task flow in dynamic region

    Hi All,
    I am using Jdeveloper version 11.1.1.6. In my fusion application I am facing an issue with the task flow refresh in the dynamic region. In my application, I have one task flow in which the side navigation command links are there and on the right side it has a dynamic region which is used to display the respective task flows on click of navigation links. Now two of the links actually call the same task flow in dynamic region but for different purpose. One for creating a record and another one for modifying the record. The default activity of that task flow has a page fragment that has couple of fields. One a drop down and another one a text field for searching the accounts against which the record is to be created or modified. On click of the navigation link, I set the task flow id to be displayed and refresh the dynamic region. Now the issue is with those two links which shows the same task flow. Let's say  I searched for a record by putting some value in input text and then went on to modify flow using the modify navigation link. Then the value that I entered in search input text in the create flow stays and does not go away. I found out the cause for the issue and this is happening because of the immediate = true on the navigation command links. Now I cannot remove that because of the obvious reason that then it will start throwing exceptions for the mandatory fields when I am in middle of any flow. Is there any way to achieve it.
    Please help as this is quite urgent. I can also upload the sample application if anyone needs it.
    Regards
    Ajay

    try to put RefreshCondition in the pageDef file for that particular task Flow and try to make that condition to true only when you switch between edit or add. While switching, make sure that the mapped bean properties should also point to respective values i.e. either empty for new or holds some value for edit.
    So, when ever the above condition returns true, task flow gets refreshes and it will holds only the current values not the old values.
    i hope this will resolve your issue.

  • Dynamic Region in Popup - clientListener problem?

    Hello,
    I'm working in Jdeveloper 11.1.1.2, following the popup/region pattern found at: http://www.oracle.com/technology/products/adf/patterns/11/popupregionpattern.pdf to have a dynamic region in a popup. I already have a working implementation on one of my pages, but the exact same implementation on another page is giving me issues. Whenever I add an af:clientListener component to my popup, the table in the same panelCollection stops rendering its rows. The column headers display, but there's no text of any type in the rows. If I delete the af:clientListener, my page works perfectly.
    Here's my popup code thus far:
    <af:popup id="awdPU" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher">
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSchlrId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}"
    to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYearId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.orgId}"
    to="#{pageFlowScope.currentOrgId}"
    type="popupFetch"/>
    <af:panelWindow id="pw1" title="Awarding">
    <af:region value="#{bindings.dynamicRegion1.regionModel}"
    id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"/>
    </af:panelWindow>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientListener method="popupClosedListener"
    type="popupClosed"/>
    </af:popup>
    and here is my working, completed dynamic region + popup code:
    <af:popup id="awdPU" contentDelivery="lazyUncached" launcherVar="source"
    eventContext="launcher">
    <af:panelWindow id="window" title="Awarding" modal="true" closeIconVisible="false">
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"
    inlineStyle="background-color:transparent;"/>
    </af:panelWindow>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}" to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}" to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYear}" type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}" type="popupFetch"/>
    <af:clientListener method="popupClosedListener" type="popupClosed"/>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientAttribute name="action" value="makeAward"/>
    <af:clientListener method="adjustPopupSize" type="popupOpening"/>
    </af:popup>
    Does anyone know of any reason a client listener would have this kind of impact on my page? I've tried other types/methods and it just seems like if an af:clientListener is there, it won't work.
    Thanks!

    Hi,
    I came across this type of problem. what the javascript method u r calling it may contain some errors or if the clientListner not able to find the method which u r calling in the jspx file that will behave like that only.
    keep one alert begining of the script method(popupClosedListener) and check it whether it is calling or not. Better related serverListner should be after the ClientListner.
    Reg,
    Brahma...

  • Problem in passing parameters between flow task in a dynamic region

    Hi,
    I have a problem with the passing of parameters between task flow when it is executed within a dynamic region. To implement this, I followed the Baranovskis Andrejus Blog "JDeveloper 11g and ADF Task Flow Parameters" and everything works perfect as the task flow are not invoked from a dynamic region. But if the same task flow are converted to fragment of pages and executed in a dynamic region, the filter in the task flow that is called does not work, it does not return any records.
    Any idea that I may be missing to make this work well?.
    Thanks in advance.

    Hi Frank.
    My case is the first, ie in a single dynamic region, a task flow call another passing parameters to filter data to display in the second, using a task flow call activitie. As I said in the message above, everything works well as both task flow to not become unbounded task flow with fragmet page.
    Any ideas?
    Thanks

  • Problem with identifying the Train in Dynamic Region

    Hi,
    I have a two task flows(firstflow,secondflow) and they both have its own individual trains and they are all page fragments. Then I have my main page where in I created a dynamic region based on secondflow. Then in the same page I have dynamic region links for firstflow and secondflow. When I run the application I first see the second flow and its train. Now when I click the firstflow link. its corresponding page is showing up then when I click the train it then goes to the secondflow and its train, I cannot navigte within the firstflow and its train. Please let me know any solution to this. Thanks.

    Hi Chetan,
    Thanks. It did worked. When I first faced this problem and when I created the dynamic region I was propmpted to create the bean and I tried creating it wieth scope = session but then I could not run the application. So I kept it as request. But now when it is changed from the property inspector it is running. I need to try the first method again to see it that happens. Thanks for the solution.

  • ADF:Dynamic Region Refreshing

    Hi,
    My JDeveloper version is 11.1.1.5
    I am facing one problem.
    I have one table to which I have Save and Remove buttons.
    To the Save button, I have one action which programmatically inserts the row into the table. And Remove button removes the row present from the table programmatically.
    The Problem I am facing is, whenever I save or remove I need to reload the page to see the row inserted or deleted. It is not happening automatically...
    Could anyone please tell me how to reload a dynamic region which reflects DB table modification onto the Dynamic Region?
    Many thanks in advance

    Hi Guys,
    Here I will try to put my scenario...
    There is one table called APPLICATION which displays all the data using ViewObject1. To this table I am adding and saving and deleting a new row.
    ViewObject1 Query :
    SELECT Application.BUSINESS_UNIT,
    Application.DESCRIPTION,
    Application.ID,
    Application.NAME
    FROM APPLICATION Application
    And there is one more viewObject which refers the same table which also displays the same columns with the data which is mentioned in below viewobject query.
    ViewObject2 Query:
    SELECT Application.BUSINESS_UNIT,
    Application.DESCRIPTION,
    Application.ID,
    Application.NAME
    FROM APPLICATION Application
    WHERE ID not in (select ID_application from project_application)
    So
    Whenever I am saving/removing a row, the table with ViewObject1 is being reflected with the saved row... but not the table with ViewObject2. So can you please advise me how to reflect the saved row in ViewObject2 also..
    ViewObject1 and ViewObject2 are referring to the same table(APPLICATION) in the DB with different queries...
    Many Thanks in Advance,
    Edited by: 977652 on Jan 22, 2013 4:42 AM

  • Problem with taskflows within the Dynamic region

    Hi,
    I am creating a application which have two bounded taskflows search-flow and admin flow.In admin-flow taskflow i have two jsff pages admin_login and welcome.whenever we click login button present in login.jsff it should navigate to welcome page.I have created the control flow case (from outcome is welcome).I have created a Home.jspx in adfc-config.xml.Using the splitter i divided the page into two facets.In facet 1 there are two command links search, admin.In the second facet i have dropped search flow as dynamic region and written the following beanclass.
    package com.Search;
    import oracle.adf.controller.TaskFlowId;
    public class Search {
    private String SearchtaskFlowId = "/WEB-INF/Search-fllow.xml#Search-fllow";
    private String AdminTaskFlowId = "/WEB-INF/Admin-flow.xml#Admin-flow";
    private String currentTF = "home";
    public SearchFlight() {
    public TaskFlowId getDynamicTaskFlowId() {
    if (this.getCurrentTF().equalsIgnoreCase("home"))
    return TaskFlowId.parse(SearchtaskFlowId);
    else
    return TaskFlowId.parse(AdminTaskFlowId);
    public void setCurrentTF(String currentTF) {
    this.currentTF = currentTF;
    public String getCurrentTF() {
    return currentTF;
    When i click the admin link in home.jspx the admin_login.jsff page is opening.After entering the credentials and clicking login button it is going to the search page of search task-flow not to the welcome.jsff.
    The admin_login.jsff is
    <?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">
    <af:decorativeBox id="db1">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1" inlineStyle="width:50cm; height:50.0cm;">
    <p>
    <af:inputText label="UserName" id="it1"
    binding="#{LoginBean.userName}"/><af:inputText label="Password"
    id="it2"
    secret="true"
    binding="#{LoginBean.password}"/><af:commandButton text="Login"
    id="cb1" binding= "#{LoginBean.login}"
    action="#{LoginBean.login_action}" />
    </p>
    <p>
    <af:commandButton text="Cancel" id="cb2"/>
    </p>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="top">
    <h:outputFormat value="Administrator Login" id="of1"
    style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:large; color:Purple;"/>
    </f:facet>
    </af:decorativeBox>
    <!--oracle-jdev-comment:preferred-managed-bean-name:NewLoginBean-->
    </jsp:root>
    The loginbean for the admin_login.jsff is
    package com.LoginBean;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.jdbc.OracleDriver;
    public class Login {
    public Login() {
    private RichInputText userName;
    private RichInputText password;
    private RichCommandButton login;
    public void setUserName(RichInputText userName) {
    this.userName = userName;
    public RichInputText getUserName() {
    return userName;
    public void setPassword(RichInputText password) {
    this.password = password;
    public RichInputText getPassword() {
    return password;
    public void setLogin(RichCommandButton login) {
    this.login = login;
    public RichCommandButton getLogin() {
    return login;
    public String login_action() {
    // Add event code here...
    String UserName = this.getUserName().getValue().toString();
    String Password = this.getPassword().getValue().toString();
    Connection conn;
    try {
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM administrator where username = '"+UserName+"' and password='"+Password+"' " );
    if (rset.next()) {
    conn.close();
    return "welcome";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "error";
    public static Connection getConnection() throws SQLException {
    String username = "hr";
    String password = "hr";
    String thinConn = "jdbc:oracle:thin:@localhost:1521:XE";
    DriverManager.registerDriver(new OracleDriver());
    Connection conn =
    DriverManager.getConnection(thinConn, username, password);
    conn.setAutoCommit(false);
    return conn;
    }

    in your web.xml find this entry and put success_url. to weblogic.jspx
    <servlet>
        <servlet-name>adfAuthentication</servlet-name>
        <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
        <init-param>
          <param-name>success_url</param-name>
          <param-value>/faces/index</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>

  • Can't view filtered VO properly in a dynamic region

    Hi all,
    I am using Jdeveloper 11.1.1.0
    I have a view object (myVO) that has some view criterias (FilteredVO1, FilteredVO2, ecc.)
    In myPage I have a dynamic region in which I can view different fragments. These fragments contain filtered data (FilteredVO1, FilteredVO2, ecc.), but I always see all the data (myVO)
    If I run the application module, in FilteredVO1, FilteredVO2, ecc. I see the data properly (I see the filtered data, not all the data).
    Also if I run a normal page (without fragments) with a panel tab for every FilteredVO, I see the filtered (and not all) data.
    In myPageDef I have set the property "refresh" on "ifNeeded".
    What's the problem? Any suggestions?
    Thanks
    Andrea

    Hi Andrea,
    Why do you want to set the refresh parameter? Is your task-flow has any parameters set..? Refresh parameter should be used only when you want the dynamic region to respond based on task-flow parameter. Otherwise, the dynamic region can automatically refresh based on different task-flow selection. So, precisely if you reset this param to default, it should work as expected provided these fragments uses different task-flows. See this document section [16.2 Creating ADF Dynamic Regions|http://download.oracle.com/docs/cd/E15051_01/web.1111/b31974/taskflows_regions.htm] for more info.
    Regards,
    ~Krithika

  • Upload image in Dynamic Region

    Hello.
    Excuse me. my English is not very good.
    I use Jdeveloper 11.1.1.3.0
    in my application i have 2 Bounded Task Flow and i use them as a dynamic region.
    in each bounded task flow i use InputFile component to upload image. but i can't upload image, because when i click the Browse button and select the image, then i click another button in my application to upload image, but the InputFile component value reset . I don't know why this happen.
    this problem just happen in dynamic region, in another case I don't have any problem with upload image.
    Thanks.

    Habib,
    Welcome to OTN.
    As you said you are using taskflows as region, can you check the refresh condition of the region binding in the pagedef and see if that has anything to do with this?
    -Arun

Maybe you are looking for

  • New to JAVA - ODBC/JDBC - clarification

    Hi, I am using Window XP. I am in my initial stages of learning JAVA. I am using one of the books to learn the language. I wrote to the following code to interact with the database - "websites.mdb" which is in a different location than java. import j

  • Installment with some Bills of Exchange

    Guys, good morning. I've a doubt about some installments with Bill of Exchange... How can I do about it? For instance, if I have a AR Invoice , based on Sales Order and i need to pay it with 1 installment + 4 bills of exchange...How can I do about it

  • Files trapped on desktop

    I have a problem with files and folders being "paralyzed" on my desktop.  I can't move files or folders and I cannot upload a file from the desktop.  Basically, the desktop is broken. I just upgraded to Lion yesterday, but that has not fixed the prob

  • IPhoto / Image Capture doesn't find Canon Powershot Camera

    Since I upgraded to Lion, my Macbook no longer sees my Canon Powershot SD 1200IS camera. Tried using iPhoto and Image Capture (following someone else's suggestion). No SD slot on my Macbook. Is there another solution?

  • Canon as1000 won't focus to infinity

    the camera won't focus to infinity like it did when it was new. i'm not sure if the warranty has run out, but i'm ready to put it in the circular file. i have tried the normal and infinity settings and the camera does not focus, even though the squar