ADF - problem of the iterator

Hi all

I have a next page definition:

+ <? XML version = "1.0" encoding = "UTF-8"? > +.
+ < pageDefinition xmlns = "http://xmlns.oracle.com/adfm/uimodel" +.
version = "11.1.1.54.7" id = "fileListingTryPageDef".
Package = "View.pageDefs" > "
+ < Settings / > +.
+ < executable > +.
+ < iterator lie = 'root' RangeSize = '25' DataControl = "fileManager" +.
ID = "fileManagerIterator" / >
+ < accessorIterator MasterBinding = "fileManagerIterator" lie = "fileNames".
RangeSize = "25" DataControl = "file manager".
BeanClass = "java.lang.String" id = "fileNamesIterator" / > "
+ < / executables > +.
+ < bindings > +.
+ < tree IterBinding = "fileNamesIterator" id = "fileNames" > +.
+ < nodeDefinition Name = "fileNames0" > +.
+ < AttrNames > +.
+ < item Value = 'Elément' / > +.
+ < / AttrNames > +.
+ < / nodeDefinition > +.
+ < / tree > +.
+ < / links > +.
+ < / pageDefinition > +.


In the bean to support, I have a following code and it gives me NPE while creating the Row object:

Links DCBindingContainer = new DCBindingContainer();
DCIteratorBinding iter = bindings.findIteratorBinding("fileNamesIterator");
Line r = iter.getCurrentRow ();


Please advice according to what might be a problem here...


See you soon,.
Matthew

Hello

Try this code instead of DCBindingContainer();

BindingContext, bc is BindingContext.getCurrent ();
Links DCBindingContainer = (DCBindingContainer) bc.getCurrentBindingsEntry ();

Hope this helps

Joseba

Tags: Java

Similar Questions

  • Problem, assess the iterations

    Hello

    I have a following script

    mu_B = Zeros (1,21);

    for i = 01:21
    County = i;

    j = 1: 125

    mu_B (i) = mu_B (i) + (j) * R (Count);
    Count = count + 21;
    end

    end

    created in LabVIEW

    Do not get the required results and again I am not be able to know if it's an exact equivalent of the script mentioned above. Need help.

    Kind regards.

    Your script describes a matrix multiplication, mu = R * a, where mu is a (column) vector of 21 items, R is a matrix of 21 lines and 125 columns and a (column) vector of 125 lines.  In your case, R is a 1 d array, so we need to make a 2D with 21 lines and 125 columns table.  Once we do that, the problem is very simple to solve.

    It will be a good exercise for you to do by yourself (and we will help you, if you get stuck).  There is a function in the table palette called table of reshape - wire R on the left and your two index, 21, then (pull down) 125), and you will get the form R 2D on the output.  Integrate a loop For of R - have - you noticed the "tunnel of indexing" (it looks like a square within a square)?  If you look at the wire inside the loop, it isn't a double line, i.e. a 2D picture, but a single line, which means that it is a line of the table 2D.  You don't need what whether wire in the connector of the loop For - it automatically scroll each of the 21 lines of R.  Now put one in the loop - here you don't want indexing tunnel (because you want the table in its entirety, all 125 items, inside the loop), then right click 'a' tunnel and choose "disable indexing."  Now you have two arrays of 1 d 125-element, you need to multiply, element by element, - that's exactly what the LabVIEW function multiply.  Wiring of the output of this multiply through the loop For (notice another tunnel of indexation, this time turning each of 21 iterations of the loop in an array of 21 items, "mu".)  And you're done.

    So, what do you need to solve this problem?  A remodel, a loop For and the other multiply to operate.  Give it a try.

    Bob Schor

  • How to refresh the iterator of 'detail' ADF liaison with up-to-date data?

    JPA EJB - ADF Databindings JDEV 12.1.3 Application

    I ve a (one to many) (many-to-one)- relationship

    A CGrupo contains a list of UsuarioGrupo

    Oracle JDeveloper 12c - Guardian.jws  Model.jpr  CJDevelopermyworkGuardianModelsrccombanorteaxxiguardianmodelentityCGrupo.java.jpg

    A UsuarioGrupo contains CGrupo

    Oracle JDeveloper 12c - Guardian.jws  Model.jpr  CJDevelopermyworkGuardianModelsrccombanorteaxxiguardianmodelentityUsuarioGrupo.ja.jpg

    I created a page with ADF databindings as follows:

    Note that there is a Master table - table in detail

    Oracle JDeveloper 12c - Guardian.jws  ViewController.jpr.jpg

    And the parameters of the iterator of detail (usuarioGrupoListIterator)

    CacheResults: false

    Refresh: always

    Oracle JDeveloper 12c - Guardian.jws  ViewController.jpr  CJDevelopermyworkGuardianViewControlleradfmsrccombanorteaxxiguardianview.jpg

    Then I run the project and the only recording is displayed correctly

    Oracle SQL Developer  CUsersBWE~1.GMICONTROLCAMBIOS.sql_2.jpg

    But if I delete the folder

    Oracle SQL Developer  CUsersBWE~1.GMICONTROLCAMBIOS.sql_3.jpg

    and then I re run the iterator, but there are no changes in the page


    Oracle SQL Developer  CUsersBWE~1.GMICONTROLCAMBIOS.sql_4.jpg


    Is there a solution for this problem?

    Thank you for your attention and help.

    Ok. If the data is modified by another application you will need to rerun the query on the master (and children collection of refreshment) database (assuming you have JPA caching enabled by default). There are number of ways to make your main EJB Session to use to query the objects method (for example, the query with @QueryHint (name = QueryHints.REFRESH, value = HintValues.TRUE); and FETCH JOINED on children). Then, children are automatically updated in the data control.

  • Performance problem for the ADF calendar

    Hello

    We intend to apply the calendar adf for one of our customers. They will use the calendar as a planner. There will be at least 350-500 activities for a provider and a month.

    We are filtering of calendar data by selecting provider from the drop-down list box. However, execution of the view object takes about 4-5 seconds and activities appear 15 seconds. Total waiting time may be 20 seconds.

    How can I improve performance? Customer will use the calendar as a scheduler of tasks online. Therefore, it must be very fast.

    JDeveloper Version: 11.1.1.6.0

    Please note that all the components are bind to the backup of the attributes of bean whose calendar itself jsff layout.

    Steps for filtering:

    1 combo box action in backing bean:

        public void onResourceChange(ValueChangeEvent valueChangeEvent) {
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            if (valueChangeEvent.getNewValue() != null) {
                if(valueChangeEvent.getNewValue() != valueChangeEvent.getOldValue()) {
                    applyFilter();
                }
            }
            else {
                removeFilter();
            }   
            
            RequestContext context = RequestContext.getCurrentInstance(); 
            context.addPartialTarget(getC1());
        }
    

    2 ApplyFilter and removeFilter in backing bean methods:

        private void applyFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule(); 
            DCIteratorBinding garageIterator = ADFUtils.findIterator("XxntcGarageInfoVO1Iterator");
            Row currentGarageRow = garageIterator.getCurrentRow();
            Number resourceId = (Number)currentGarageRow.getAttribute("ResourceId");
            am.applyCalendarFilter(resourceId);        
        }
        
        private void removeFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule();  
            am.removeFilter();
        }
    

    3. the application model Impl applyCalendarFilter removeFilter methods and

        public void applyCalendarFilter(Number resourceId) {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            System.out.println(new java.util.Date());
            ViewCriteria vc = calendarVo.createViewCriteria();
            vc.setName("fiterCalendar");
            ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
            vcRow.setAttribute("ResourceId", "= " + resourceId);
            vc.insertRow(vcRow);
            calendarVo.appendViewCriteria(vc);
            calendarVo.executeQuery();
            
            /*calendarVo.setWhereClause(null);
            calendarVo.setWhereClause("RESOURCE_ID = :pResourceId");
            calendarVo.defineNamedWhereClauseParam("pResourceId", null, null);
            calendarVo.setNamedWhereClauseParam("pResourceId",resourceId);         
            calendarVo.executeQuery();*/
            System.out.println(new java.util.Date());
        }
        
        public void removeFilter() {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            calendarVo.removeApplyViewCriteriaName("fiterCalendar");
            //calendarVo.removeNamedWhereClauseParam("pResourceId");
            calendarVo.executeQuery();
        }
    

    Kind regards

    Anil

    Hi all

    Problem is solved.

    There are three important points for the solution.

    1 oracle has proposed to use a separate iterator for suppliers. Here is the explanation of SR Oracle:

    @ The iterator binding of the calendar and the iterator binding of the

    @ suppliers are the same, there is no point at all. Normally, the

    @ the iterator binding calendar is for the events calendar and the provider

    @ the iterator is on another iterator which gives information about the provider, the

    @ provider in the timing of the event is the foreign key to the iterator of provider.

    @You need to create a table for the vendor and then set object entity / view

    @ the object on the table, an iterator will be generated. The provider_id in the

    @ event table should be the foreign key to the table of the provider and the

    @ providerDefinition must point to the iterator of the vo provider.

    @ You cannot use the same table to set the calendar events and providers,

    @ This just doesn't make sense.

    2. I am able to set the iterator range size if I use a separate iterator for suppliers. Otherwise, ADF throws it npe: ' java.lang.NullPointerException: ADFv: calendar activity Id and Vendor Id cannot be null. "

    3. I forgot to use parameters of connection (StartDayTime, EndDayTime and time zones) in my query where clause. Creation of a criteria like this where clause "((HrCalendarEvents.START_TIME > =: StartDayTime) AND (HrCalendarEvents.END_TIME)"<= :enddaytime="" )="" )="" "="" solves="" fetching="" all="" rows="" problem.="" now="" it="" fetches="" just="" current="" time="">

    Kind regards

    Anil

  • Problem with the partialTrigger on the Table of the ADF

    JDeveloper Version 11.1.2.3.0

    I've reproduced the problem with partialTrigger on the array element. Sample application can be downloaded from here . He needs to run HR schema.
    Underneath the pageFragment sample, I can try refreshing adf table in two ways
    1. turn the addEmployee button id in partialTrigger of the ADFTable component.
    2. set the id of the button addEmployee in the PanelBox component partialTrigger.

    Note the difference - 1st only works no where as 2nd works very well. Do you have additional constraints when updating using the ADF Board
    partialTrigger?
    I have reproduced the usecase in example below:

    Structure of the PageFragment-

    PanelBox
    |
    | _ ADF Table
    |
    | facet __toolbar
    |
    | _ addEmployee button


    Code PageFragment

    < af:panelBox text = "PanelBox2" id = "pb1" >
    < f: facet name = "toolbar" >
    < af:commandButton actionListener = "#{bindings.addEmployee.execute}" = "addEmployee2" text "
    Disabled = "#{!}" Bindings.addEmployee.Enabled}"id ="cb1"partialSubmit ="true"/ >
    < / f: facet >
    < af:table value = "#{bindings." Var EmployeesView1.collectionModel}"="row"rows =" #{bindings. " EmployeesView1.rangeSize}.
    emptyText = "#{bindings." EmployeesView1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." EmployeesView1.rangeSize}' rowBandingInterval = '0 '.
    selectedRowKeys = ' #{bindings. " EmployeesView1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." RowSelection EmployeesView1.collectionModel.makeCurrent}"="single"id ="t1 ".
    "displayRow ="selected"partialTriggers =": cb1 "styleClass ="AFStretchWidth">
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.EmployeeId.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.EmployeeId.label}"id ="c1">
    < af:inputText value = "#{row.bindings.EmployeeId.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.EmployeeId.label}.
    required = "#{bindings." EmployeesView1.hints.EmployeeId.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.EmployeeId.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.EmployeeId.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.EmployeeId.tooltip}"id ="it1">
    < f: validator binding="#{row.bindings.EmployeeId.validator}"/ >
    < af:convertNumber groupingUsed = 'false' pattern = ' #{bindings. " EmployeesView1.hints.EmployeeId.format}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.FirstName.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.FirstName.label}"id ="c2">
    < af:inputText value = "#{row.bindings.FirstName.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.FirstName.label}.
    required = "#{bindings." EmployeesView1.hints.FirstName.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.FirstName.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.FirstName.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.FirstName.tooltip}"id ="it2">
    < f: validator binding="#{row.bindings.FirstName.validator}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.LastName.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.LastName.label}"id = 'c3' >
    < af:inputText value = "#{row.bindings.LastName.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.LastName.label}.
    required = "#{bindings." EmployeesView1.hints.LastName.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.LastName.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.LastName.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.LastName.tooltip}"id ="it3">
    < f: validator binding="#{row.bindings.LastName.validator}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.DepartmentId.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.DepartmentId.label}"id ="c11">
    "< af:selectOneChoice value =" #{row.bindings.DepartmentId.inputValue} "label =" #{row.bindings.DepartmentId.label} ".
    required = "#{bindings." EmployeesView1.hints.DepartmentId.mandatory}.
    shortDesc = "#{bindings." EmployeesView1.hints.DepartmentId.tooltip}"id ="soc1">
    < f: selectItems value = "#{row.bindings.DepartmentId.items}" id = "si1" / > "
    < / af:selectOneChoice >
    < / af:column >
    < / af:table >
    < / af:panelBox >


    Thank you
    Rajdeep

    Hello

    the reason in my opinion, this has to do with the creation of the employee, who sits on the company and not the iterator that displays the data in the table. Therefore, the iterator must re - query to view the data that you created in silent mode in the background

    Addition of

    employeesViewImpl.executeQuery ();

    to your AppModule Impl class at the end of the creation of the employee solve the problem that you see

    Frank

  • Problems with the LaserJet M1217nfw MFP - resolution of the Scanner and ADF feeding issues

    Feature: LaserJet M1217nfw MFP

    Connection: Ethernet

    OS: Windows 7 Pro 64-bit

    1st problem: using the TWAIN software, I am unable to change the resolution of the documents I'm scanning. It displays only the 300 and the menu drop-down does not offer any other parameters. It is having to make each document that I scan a lot more big that it must be, and the company I'm downloading of complained them of the overused storage space.  Device MUST be based on the network for the office.

    2nd problem: the ADF is VERY picky. If the paper is inserted at the stop, it will not pick up and will keep scanning out of the original glass. I usually have 2 or 3 times to find the "sweet spot" where it will actually be a new Pick-up analysis.

    I must say, I was very happy with this product when we got it first, the web interface with the drivers loaded on the printer was a great feature and the installation for each machine went very smooth. However, lately this device became more complicated than a time saver.

    Hi SilentbobSC,

    Follow the steps below.

    1. click on settings

    2. remove the checkmark of "Display the dialogue from TWAIN to allow cropping and low sweep"

    3. click on the drop down arrow to adjust your ppp settings

  • problem - by clicking on the button loses the new line or resets the iterator

    Hello

    I use JDev 11.1.1.6. I created a page that is preceded in the taskflow by a method in the AppModule that creates a line on the iterator and inserts it. I have a button 'Next' in the page, which is supposed to make changes to attribute readonly on the input fields, and display a confirmation button.

    The problem: when I click on 'next', the empty fields that have been entered by the user on the page, is part of the first record in the iterator. It is as if, when the button "Next" has been clicked, the iterator has been somewhat refreshed and moved to the first original line, and entered values have been thrown in there... While my 'new' record is lost. Result: I lose my new record line, and entered values replace the values in the first previous row in the iterator.

    The code used to create the line before the page is loaded:

    Sender ViewObjectImpl = getSubmittersView3_1();

    Submitter.Reset ();

    ViewRowImpl submitterRow = submitter.createRow () (ViewRowImpl);

    submitter.insertRow (submitterRow);

    When the page is loaded initially, I printed the primary key on the line and a - 4 (which is good, it means new line)

    But when I print the primary key in the action of the button 'Next', 59, who has been the pharmacokinetics of the first original line I.

    The code that is used to print the primary key:

    seqNum int = Integer.parseInt (this.getAppModule () .getSubmittersView3_1 () .getCurrentRow () .getAttribute (0) m:System.NET.SocketAddress.ToString ());

    Then print seqNum.

    Please help.

    Found the problem.

    I had a button print at the bottom, which was my button "Cancel". In this paper, I got the code to remove additional items (i.e. unwanted ranks - since it is a Cancel button). And what was going on was that while rendering on the page, the code of the EEG for the go button was running and the removal of my new line! If the culprit here was go get code button is iterated in the rendering phase... something I didn't expect or know so far. Remove this code and change a command button solves the problem.

  • Unicode problem in the ADF faces

    Dear all,

    I have a problem with Unicode. I use JDeveloper 11.1.1.4.0.

    When I enter the Unicode text in an ADF Web Pages with mysql database and then recover (refresh page) of database, Web page (component) shows data?.
    I have configured the preferences/encoding, model and display settings of compiler controller in UTF - 8.

    But when I entered the data directly to the database of MySQL IDE, it was OK. (Show Me well).

    Thank you
    Angelique

    I'm sure you get utf-8 codes of the user interface. So the problem is maybe the driver that you use to store the string in the db or db (or array) itself. It's for you to discover.
    You can generate a java class for the OS allows you to store the string and set a breakpoint in the method settter of the attribute in question. You check the data before commit you it to the db. After validation, look you at Pb and see what is stored. As long as you do not see the correct data there are a problem with the jdbc driver that you are using, or the db does not accept utf - 8.

    Timo

  • JSF tutorial, EJB, JPA, the sample of the problems with the ADF runtime

    Hello

    I'm new to jDeveloper.
    I downloaded the version 11.1.1.2.0 and tried to make my first tutorials with the product.
    I started with the sample "create Applications with EJB, JPA and JSF" and run to the following problems:

    -1st part: step 10 expose the EJb as a data control
    Click here FODFacadeBean.java and choose Create a Data control.
    This option "create data Control ' is not at all to the top. There is no option

    -Part 2: Step 1 Add tag libraries in a project
    The ability to select "the ADF Faces Components 11'
    does not come either. I can't see any ADF Associates options...

    Is there something missing in my installation, because I can't access these components of the ADF?
    Should I include the components of the ADF sometime during the installation to have access to these
    or is it a license option?

    I downloaded the product yesterday from the public site, filename jdevstudio11112install.exe

    Jan-Erik

    Go to tool-> preferences-> roles
    and pass the default role, then you should have all the ADF their stuff available.

  • Iterator for the table and form is a problem during the cleaning of the records

    Hello

    I use JDev 12.1.2.

    I have an object of the detail view. I represent a part of its fields in a table and the rest in a form. I use the same iterator. Basically, I dragged and dropped the object even from the view of the data control and created a table and form layout with the fields I wanted in each provision. I put in place a clear feature for the rows in the table with a clear"" key. -on click I delete the line of the iterator in the managed bean. When I do this the selected record is deleted and the next record is displayed. But fields entered in the form layout also gets deleted. (the form should also be showing the record currently selected - it shows but entrable fields in the form are deleted because of claire that I did on the previous line.) If anyone can help get this resolved?

    Not use the same iterator for the tables and forms here? The links are in the row (row.bindings...) for the table, but for the form it is (links...). The Delete on the current row operation is causing the iterator delete all fields of links instead of from the line? Please shed some light.

    Thank you

    UMA

    How do you rank on the iterator compensation?

    use resetActionListener in your clear button and let us know what is happening?

    Ashish

  • ADF: Columns of the Table filtering problem

    Hello

    My Version of JDeveloper is 11.1.1.5

    I am facing a problem with the filter of the table...

    Is it possible to implement the feature of research on filtering only on af:table with panelCollection?

    Could someone help me please in this?

    I need Research* not only the filtering of the data inside the table with the facet of the columns of the table filter...

    Can someone help me with this application?

    Many thanks in advance,

    Kind regards
    Anil

    Published by: 977652 on February 17, 2013 19:28

    Published by: 977652 on February 17, 2013 19:38

    You can just type in the filter like '% EBS' field and you will find your file.

    Timo

  • In the tree of ADF problem when I use 2 tree in a Page with the same object in view!

    Hello world

    I use 11.1.1.5 JDeveloper and ADF Faces in the user interface. I have 2 trees in a page that they are same view editable object but different instances in the module of the application. When I change the attribute value of one of them to manage Bean programmatically, two of them change? !! in my case, I put a checkbox in nodeStamp, when the user click on the checkbox, rank title needs to change but the title in both entities change?
    I think it's a bug.

    Please help me. Thank you

    Hello
    If I understand your case, then this is the expected behavior.
    When multiple instances of objects from view based on feature in an application module is based on the same underlying object of the entity, then a change in one of them reflected on the other.

  • problem on the flow of tasks of adf and dynamic region

    JDeveloper 11.1.1.5

    I created a page jspx for making fun of the home page.

    In the facet of the beginning, there are 2 Ref order link in the region (for the 2 workflow)
    In the facet of the Center, there is a dynamic region. Once you click on the order link, the region will be changed.

    The problem is:

    the workflow has 3 displays (View1-> 2-> the View3), if I run mode 2, when I click on the link even in the facet of the beginning, it does not refer to the View1.

    I want the page back to View1 when I click the link, how can I apply?

    Hello

    You must reload the region to start again. To do this, you can assign to the refreshCondition for connection of the region, in such a way that when it is resolved to true, the region will be reset. No doubt, you can add a parameter to the region and set its value through setActionListener for the click on the link.

    Check this: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm#CHDEIFBB

    Arun-

  • Get NPES trying to create a line of the iterator of table on the loading of the page.


    Hi all

    I'm new to ADF and try to learn from its concepts. I've created a workflow with the train and using 7 jspx pages as the train stops. When I move from one stop to the next stop, the data are made to the database.

    My use case is, I want to fill an iterator of table on the loading of the page based on the data provided on the previous stop.

    I tried to use the code to find the iterator and create the line the view object in support Builder bean as well as file impl application module(call the executable action method) but every time I got the same null pointer exception.

    The code used for creating line iterator:

    BindingContext bindingContext = BindingContext.getCurrent ();
    BindingContainer DCBindingContainer = (DCBindingContainer) bindingContext.getCurrentBindingsEntry ();
    IdIterator DCIteratorBinding = bindingContainer.findIteratorBinding("iteratorName");

    ViewObject vo = idIterator.getViewObject ();

    Line rw = vo.createRow (); It is the line where I'm getting null pointer exception.

    Trace of the exception:

    at oracle.adf.model.bean.DCDataVO.initFKs(DCDataVO.java:621)

    at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:592)

    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1993)

    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2492)

    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2533)

    at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2514)

    at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:11079)

    Please correct me if I'm wrong, but that's what I think I understand that, iterator links are not initialized correctly on appeal by Builder or application module impl of the file that I use.

    I will need to create a listener of phase of page for the task flow and and use the method afterPhase to call my method for line creation and insertion in the table iterator. ?

    But this approach causes the phase listner class to call for each workflow page I don't want I need to fill out the table only for a single page and not to other pages of six.

    Please help me in this problem by providing suggestions and pointers.

    My version of JDev is 11.1.1.6.

    Thanks in advance.

    ~ Abhishek

    Hi Ben,

    Thanks for your reply. But it did not solve my problem.

    To solve my problem, what I did is mentioned below:

    In my support for this page two, I create a listner beforePhase method and named her beforePhase displaying page jspx tag property.

    when the phaseId is RENDER_RESPONSE, so I call my method to set the extracted database of the values in the table iterator. and it updated the iterator with new values.

    Thank you all for your answers.

  • Understand the iterator binding relationship of the current page

    Dear all

    in my quest to understand the behavior of the ADF framework, I sometimes do some experimentation. When a result is unlike what I think, it suggests that there is something wrong with the understanding

    I belong to those who can not work if I do not receive an overview comprehesive of what I am working with (ADF)

    Here's a simple experiment that I could use some help to understand

    I created a simple application based on ADF BC and JSF (10.1.2)

    The model is simple EO based on the EMP table and updatable VO based on the entity

    I slipped and fell to the control of data collection in a page as a Table with record selector

    I created a button with the following code

    Public Sub commandButton_action(ActionEvent a)
    {
    Am is AppModule_rs (AppModule_rs) ADFFacesHelper.getAppplicationModule ("AppModule_rsDataControl");. / / This just a helper class to get AM name DC
    ViewObject vo1 = am.findViewObject("EmpView1");
    VO1. Next();
    VO1. Next();
    System.out.println (VO1. GetCurrentRow(). GetAttribute ("empno")); -Read the valur of the iterator of VO
    DCIteratorBinding bd = ADFFacesHelper.getIteratorBinding ("EmpView1Iterator");
    System.out.println (BD. GetCurrentRow(). GetAttribute ("empno")); -Read the value of the iterator binding
    }

    Just simple code for in-house advance lines of two pointer line and then see how this is reflected in the page. This test is just for me to understand how the iterator binding refers to the actual set of rows.

    Scenario (1)

    -Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -Click on the commandbutton control, the code above is executed
    -the rowselector forward twice and should point to the third row on VO
    -on the page of the third row must be selected
    RESULT: Match perfect and both command Print print the same value
    -Press and hold the control button, line guard page selector advances two lines at a time... which is good

    Scenario (2)

    -Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -use the mouse and select the fourth row on the screen (not pressed) - VO is always level 1, screen on set, iterator binding binds to the rowset VO is always the first row referenes
    -Press the button
    -the page maintains its fourth selected line, while the System.out.println (vo1.getCurrentRow ().getAttribute("Empno")); prints the 7521 value which is the third - row
    -I don't feel happy, the current iterator of VO is on the third row, visually, it's fourth, which means that the selection of the user on the Web page did not consider. And this goes against my intiution


    -Press again, I find that line of page selector is the sixth line (4 + 2), therefore the iterator to all VO lines (synchornized times)

    Scenario (3)

    Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -use the mouse and select the fourth row on the screen (not pressed) - VO is always level 1, screen on set, iterator binding binds to the rowset VO is always the first row referenes
    -Press the button SUBMIT - 4th place is always selected as expected
    -Now press the order button, you will see that line on the screen selector forward two rows and print indicates that the VO has also progressed to the same value
    -Se TRANSLATE only after pressing send, the frame cought his breath and synchronized things

    Coming background FORMS, things of this nature never would have happened with Disk Manager.

    I tried to project what has happened to the lifecycle ADF to try to understand how the interaction of the user affects the selection of lines, but was unable to reach a unified solution. What follows as an attempt for scenario (2)

    The user moves the selection to the fourth line
    The command button is pressed.
    Life cycle JSF begins with the RESTORATION of the VIEW.
    Apply request values (I guess the lines selection made by the user to become an integral part of request values?)
    Prepare the model (this is a post (postback), property of refreshment has ifNeeded, Binidng is created again and VO is always first in the poinitng)
    Validation process (no validation as no data entry)
    Model update (don't know if at this point the update of the line VO iterator? if so it should point to the fourth line)-doesn't seem to be the case
    Invoke the application, the listener of the action is executed and the VO is forced to move twice under the command button code
    Prepare the Render: it is a step where the link needs to be updated and reflect the currernt VO (rank 6) line
    Render: The page where the sixth line is selected

    where I am wrong! appreciate your comments

    It's what makes the difficult framework, if it is not clearly documented so the flow is very well understood by developers in one day, the developer must spend days and days debugging problems. This sure beats the idea of using frames to increase productivity

    I have

    Quick question - is the button that you add code to the same area (the "select and" area) as the button submit table?
    I'm guessing that it isn't and that the explanation is that just by clicking on a specific record in the table is not actually indicate to the controller layer is a selected line.
    The Send button did this update.
    One solution might be to set the autosubmit to the selected component to be true.

Maybe you are looking for

  • My Satellite phone runs very slowly

    HelloMy PC has become impossible to operate, it is so slow.I tried to use AdwCleaner, spybot, avast scan, glary utilities, ccleaner to make it better.For awhile, it works much better. However, after a short period of time, perhaps a week later, the p

  • HP Update popup

    I see a pop-up stating "HP Update" on a blue background at the bottom right of my computer screen. I want to get rid of it, but it would be unresponsive to single or double or right click. Part of the text on the right is hidden so I wonder if fo of

  • Satellite A200-23W and blu - ray optical disc drive

    Y at - it news, as if we can replace our perspective with a * blu ray writer dvd writer *? (not only player...)Thank you for your help.

  • IP address on the cRIO-9075

    I have a cRIO-9075 serving piece of alternative/backup for one of our production test systems.  I was about to try a new code on this backup, but I can't connect to it.  I searched in MAX and tried to ping to the IP address that it should be, but I g

  • Is there a songsmith creative commons license link so that I can use created songs for YouTube videos monetized Songsmith?

    Is there a songsmith creative commons license link so that I can use created songs for YouTube videos monetized Songsmith? original title: songsmith creative commons license