Refresh paging ADF problem

Hi all

I created a form of research that is filtering some registration and fill in af:table.

In my table, I've implemented pagination using scrolling strategy in ADF 11.1.1.7.

Forward and backward navigation works perfectly well. Suppose that I am on the 4th page and perform a search based on certain criteria.

. Filtered check are shown in the table but my pagination control is on page 4.

Ideally, it should reset and go on the 1st page.

Please suggest any other solution to this problem.

Thank you

AK.

This piece of code restores intial position (1) indicator of pagination.

private void refreshTable() {}

create a range for the table change event

Event RangeChangeEvent = new RangeChangeEvent (array, 0, 0, 0, 0);

table. Broadcast (Event);

AdfFacesContext.getCurrentInstance () .addPartialTarget (table);

}

Tags: Java

Similar Questions

  • ADF table with checkbox refresh data binding problem

    Hello.

    I use JDeveloper 11.1.1.3. I need to use the table with checkboxes in each row of the table in my project. I use VO with transitional 'Selected' attribute that has a boolean type.
    Everything works well, wait one thing:
    When you click checbox with valueChangeListener and try to get the selected line in the managedBean you won't get any selected lines. After selecting second maaged bean evil shows that 1 single line is selected. It's my managedBean method:

    public void SelectCountyClick (ValueChangeEvent valueChangeEvent) {}

    DCIteratorBinding it = ADFUtils.findIterator (ITERATOR_NAME);

    int selectedRowCount = 0;
    RowSetIterator laughs = it.getRowSetIterator ();
    Line r = rit.first ();
    If (r! = null) {}
    If ((Boolean) r.getAttribute ("Selected"))
    selectedRowCount ++;
    }

    While (rit.hasNext ()) {}
    r = rit.next ();
    If ((Boolean) r.getAttribute ("Selected"))
    selectedRowCount ++;
    }

    System.out.println ("selected all THE LINES:" + selectedRowCount);


    }

    I tried to change this event to the client event, I got the line number, I put 'true' or 'false' to the code data binding, but whenever I can't correct data after the value change event.

    Please help me.

    The latest idea is updated databing after click of checkbox, I think. Please help me.

    Thank you!

    You must go through the concepts of life cycle of page ADF. In simple terms the Boolean value in the model is not defined in valueChangeListener. Try adding (.processUpdates) valueChangeEvent.getComponent (FacesContext.getCurrentInstance ()); on top of your listener method and see the effect.

    Reference:
    http://docs.Oracle.com/CD/E15051_01/Web.1111/b31974/adf_lifecycle.htm

  • Popup ADF problems

    Hello!

    I have a popup adf containing some mandatory inputText and selectOneChoice.

    When you open the window contextual atrves click a CommandButton with partialSubmit = true all required fields are validated and how are empty, an error message appears indicating that the fields are filled.

    Of course, I don't want the fields to be validated to open the context menu, but only when I click a commandButton control the popup.

    I would like to understand why these fields are validated to open the context menu, and how to avoid without having to remove the mandatory fields.

    Any ideas?

    My code:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < f: view = xmlns:f ' http://Java.Sun.com/JSF/core "xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich "> "

    < af:popup autoCancel = "disabled" id = "popupInclusaoTrem" binding = "#{PlanejamentoMB.popupInclusaoTrem} '"

    contentDelivery = "lazyUncached" >

    < af:dialog title = "Planejamento - include Trem" type = "none" closeIconVisible = "false" id = "d1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow marginTop = '5px' height = 'auto' id = "gr1" >

    < af:gridCell marginStart = "5px" id = "gc2" >

    < af:inputText binding = "#{PlanejamentoMB.richInputSede} ' readOnly = 'true'"

    labelStyle = "position: absolute;" left: 34px; »

    contentStyle = "position: absolute;" left: 68px; "label =" "Sede:" id = "it2" / > "

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr2" >

    < af:gridCell marginStart = "5px" id = "GCQ4" >

    < af:inputText label = "" Prefixo: "maximumLength = '3' columns = '7'"

    labelStyle = "position: absolute;" left: 15px; "required ="true ".

    contentStyle = "position: absolute;" left: 68px; »

    Binding = "#{PlanejamentoMB.richInputTextTrem} '"

    requiredMessageDetail = "Campo de O Prefixo e required." id = "it3" >

    < af:validateRegExp pattern = "[A - Z] [0-9] {2}'"

    messageDetailNoMatch = "informed um trem valido prefixo (Exemplo: 99 X)". "/ >"

    < / af:inputText >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr5" >

    < af:gridCell marginStart = "5px" id = "CG6" >

    < af:selectOneChoice label = "" event: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 15px; »

    Binding = "#{PlanejamentoMB.richSelectEvento}" id = 'soc1' "

    requiredMessageDetail = "O campo Evento e required." >

    < f: selectItems value = "#{PlanejamentoMB.listagemEventos}" id = "si2" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom '5px' = '5px' height = 'auto' id = "gr3" >

    < af:gridCell marginStart = "5px" id = "gc1" >

    < af:selectOneChoice label = "" Origem: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

    Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

    valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

    requiredMessageDetail = "O campo Origem e required."

    >

    < f: selectItems value = "#{PlanejamentoMB.listagemOrigensPorSedeGradeFixa}" id = "si3" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr4" >

    < af:gridCell marginStart = "5px" id = "gc3" >

    < af:selectOneChoice label = "" Destino: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 11px; »

    Binding = "#{PlanejamentoMB.richSelectOneDestino}" id = "soc3" "

    requiredMessageDetail = "O campo Destino e required."

    >

    < f: selectItems value = "#{PlanejamentoMB.listagemDestinoPorOrigem}" id = "si1" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr7" >

    < af:gridCell marginStart = "5px" id = "G.c.5" >

    "< af:inputDate binding =" #{PlanejamentoMB.richInputDateSaida} "id ="dt1hourSecond"label =" Saida:

    requiredMessageDetail = "Campo de O" Saida e required. inlineStyle = "width: 280px;" >

    < af:clientListener type = "focus" method = "onhourFocusSimple" / >

    < f: convertDateTime pattern = "Hh: mm" / >

    < / af:inputDate >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr8" >

    < af:gridCell marginStart = "5px" id = "CG7" >

    < af:selectBooleanCheckbox label = "" distributed: "contentStyle =" position: absolute; ' " left: 68px; »

    Binding = "#{PlanejamentoMB.richBooleanDistribuido}" id = "sbc1" / > "

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom '10px' = '5px' height = 'auto' id = "gr6" >

    < af:gridCell marginStart = '5px' id = 'G.c.8' halign = 'end' >

    < af:commandButton text = "Salvar" partialSubmit = "true" inlineStyle = "width: 120px;" id = "cb1".

    actionListener = "#{PlanejamentoMB.salvarTremGrade}" / >

    < / af:gridCell >

    < af:gridCell marginStart = '5px' id = 'gc81' halign = 'end' >

    < af:commandButton text = "Cancel" partialSubmit = "true" inlineStyle = "width: 120px;"

    immediate = "true" id = "cb2".

    actionListener = "#{PlanejamentoMB.cancelarInclusaoTrem}" / >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < / af:dialog >

    < / af:popup >

    < / f: view >

    Hello

    Some time ago I have the same problem, but my problem is that I put ppr as a property of refreshment in the links (on iterator).

    But result was the same, the mandatory fields have been posted after the popup is displayed.

    Your JSF I see that you have no links. Im not sure exactly where you store your data?

    labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

    Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

    valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

    requiredMessageDetail = "O campo Origem e required."

    >

    You do not have the "value" attribute Maybe that's the problem? You work with data in your valueChangeListener but maybe if you do not set a value attribute adf you give validator msg?

    Best regards

    Rafal

  • Refreshing dynamic region problem

    Hello

    I am facing problems refreshing the dynamic region. Here's the usecase:

    JSPX page: TestDynamicTaskflow.jspx

    First Taskflow: LinksTF--> has a page with 3 buttons control and a dynamic region.

    Then click on the 1st and second command button link tf-1 must be displayed and for the third command button tf2.

    Second Taskflow: tf - 1-> Taskflow has a page with an inputText field jsff (required = true)

    Third taskflow: tf - 2-> Taskflow has a page with an inputText field jsff (required = true)

    Problem: Click on the 1 button and tf1 is responsible. Now, enter a value for the inputText and click commandButton2... tf-1 is loaded but inputText retains the entered value... What is question.

    Hello

    the workflow is reloaded you should be able to tell when a print message set must be called in the initializer of workflow. I guess the problem is with the text component not reset its value. So it's a problem of lifecycle JSF, not a matter of the region. The command link pass the workflow, licensing

    oracle.adf.view.rich.util.ResetUtils.reset (regionId_in_here);

    Frank

  • Refresh the screen problem

    Thanks for the reply.

    In my screen is getting refreshed every 30 seconds, if I use for single Labelfield setext it works fine, but if there are many Labelfield (that are created dynamically via a loop), it seems that the process does not work. Could you please let us know, what could have caused this.

    Here is my code...

    sample)
       
    VerticalFieldManager ListCol = new VerticalFieldManager()
    VerticalFieldManager TimeStatus = new VerticalFieldManager()
    lbl_timestart = new RaidersIconLabelBoxHa;)
    TimeStatus.add (lbl_timestart)
    Add (TimeStatus)
    bgthread. Start()
          
       
    class BackGroundThread extends Threa
       
    Channel HostContent
    Boolean condition

    public void run)
           
    If (status
                   
    RefreshScreen()
    }
    Try
                      
    Invalidate()
                      
    } catch (System.Exception e

    public void RefreshScreen)
         
    UiApplication.getUiApplication () .invokeLater (new Runnable()
    public void run)
              
    TR
    {
    lbl_timestart. SetText (modules. Hostedtimestart.ElementAt (0))
    Invalidate()
               
    catch (System.Exception e
               
    Logger.logEventInfo (try ())
               
              
    })

    Above code works very well

    The code of my problem is...

    sample)
       
    VerticalFieldManager ListCol = new VerticalFieldManager()
    VerticalFieldManager TimeStatus = new VerticalFieldManager()
    for (int i = 05; i ++)
               
    lbl_timestart = new RaidersIconLabelBoxHa;)
    TimeStatus.add (lbl_timestart)
               
    Add (TimeStatus)
    bgthread. Start()
          
       
    class BackGroundThread extends Threa
       
    Channel HostContent
    Boolean condition

    public void run)
           
    If (status
                   
    RefreshScreen()
    }
    Try
                      
    Invalidate()
                      
    } catch (System.Exception e

    public void RefreshScreen)
         
    UiApplication.getUiApplication () .invokeLater (new Runnable()
    public void run)
              
    TR
               
    for (int i = 0; 5; i ++)
                   
    lbl_timestart. SetText (modules. Hostedtimestart.ElementAt (i))
    Invalidate()
                   
              
               
               
    catch (System.Exception e
               
    Logger.logEventInfo (try ())
               
              
    })

    If it works...!

    ================================================

    feel free to click like button that is to the right of this message.

  • Windows refresh caused some problems

    Recently for some reason any my Windows 8 did not work properly. In fact, I had tried to install a game GTA4 and it was not properly, installing as I uninstall it this problem started... Victory beginning would show the logo winner 8 and then the screen would go black forever. I went to repair (with the DVD of Win8) mode, but the system could not recover old date of recovery. That's why I went for the 'Refresh' system that was not as easy and I got this message twice that system could not be updated. Finally I could update the system.

    Now, I've seen two questions:

    (1) drive C has a folder called "Old Windows" which I deleted.

    (2) whenever I'm starting I get an option to choose an operating system when the OS are Win 8 and are both on Volume 2.

    I have attached a screenshot.

    If I click on one of the highest the Win 8 operating system load. If I do not choose... the countdown ends and charge of Win8.

    If I click on "change default settings or choose the other option... I get what you see in the screenshot below.

    In addition, I check my C drive and I only have a single instance of Windows installed.

    How can I remove this to load Windows 8 normally.

    Hello

    As far the Windows.old folder is concerned, you can remove it by using the rest of way:
    Press the Windows key + R, type in msconfig and press ENTER. Switch to the Startup tab in the System Configuration utility window  then, delete an entry that is not desired. Click apply then OK. Fact!
    Hope this helps, good luck :)
  • ViewObject range Paging performance problem

    Hi all

    I am facing a performance problem with the implementation of an obligation to programmatically add a number of extra where the parameters of the clause (using bind) variable in combination with range paging.

    My code looks like this

    ...
    
    ApplicationModule am = Configuration.createRootApplicationModule("services.DossierAM", "DossierAMLocal");
    ViewObject vo = am.findViewObject("DossierListView");
    
    // apply programmatic view criteria
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcr = vc.createViewCriteriaRow();
    vcr.setAttribute("Reference", "15/%");
    vc.addElement(vcr);
    vo.applyViewCriteria(vc, true);
    
    
    // enable range paging
    vo.setAccessMode(RowSet.RANGE_PAGING);
    vo.setIterMode(RowIterator.ITER_MODE_LAST_PAGE_PARTIAL);
    vo.setRangeSize(50);
    vo.scrollToRangePage(5); // Cause a java.sql.SQLException: Parameter IN or OUT missing for index.....debugging learned that the :vc_temp_1 bind variable is not filled
    // vo.scrollToRange(250); // Cause a java.sql.SQLException: Parameter IN or OUT missing for index.....debugging learned that the :vc_temp_1 bind variable is not filled
    
    ... 
      ...
    

    I found 2 solutions, but they both require an application of additional database that is, performance wise, is not acceptable.

    The first solution is to slip into an additional call to exectueQuery() before the call to function scrollToRangePage (int) or scrollToRange (int).

    The second solution is to use the method (int) setRangeStart instead of variants scrollToRange (Page). This method performs also 2 database calls.

    My question to you:

    Is there another way to satisfy the requirement of programming add a certain number of parameters of the additional where clause (using the variable binding) in combination with the pagination of the range without the need to perform queries of database 2?

    The code is tested with JDeveloper, 11.1.2.4.0, and 12.1.3.0.0 and behaves the same on both versions.

    Kind regards

    Steven.

    Have you tried to create truly VC with bind variable (rather than use binding implied var created by frame)?

    Something like: http://www.jobinesh.com/2010/10/creating-view-criteria-having-bind.html

    Dario

  • Deployment Mobile ADF problem

    Hello-

    I'm so frustrated with the ADF Mobile deployment. I have already created several Android applications using the native language and never did face problems of this kind. I am very familiar with the ADF development as well.

    in any case, it's my problem.

    I downloaded the mobile application of adf sample from the following tutorial, but I have been unable to deploy on the Android emulator in Release mode. The debug mode takes forever.

    Oracle JDeveloper 11 g Release 2 tutorials - creating Mobile Applications with Oracle ADF Mobile

    This is the error messages I receive:

    [23: 02:51]-deployment began.  ----

    [23: 02:51] the target platform's (Android).

    [23: 02:51] early deployment of ADF Mobile 'Employees' to Android application using the profile "Android3."

    [23: 02:51] undeployment.

    [23: 02:51] - incomplete deployment.

    [23: 02:51] the following configuration of Android preference is invalid or missing. Set these options in the preferences of JDeveloper on the Panel of the ADF Mobile:

    Key to past

    (oracle.adfmf.framework.dt.deploy.android.deployers.ValidatePreferencesDeployer)

    I generated the keystore using keygen by the tutorial and it's not ' t help.

    That's how I validated the keystore.

    C:\Oracle\MiddlewareMob\jdk160_24\bin > emp.keystore keytool-list - keystore

    Enter keystore password:

    Keystore type: JKS

    Keystore provider: SUN

    Your keystore contains 1 entry

    EMPL, November 19, 2013, PrivateKeyEntry.

    Certificate fingerprint (MD5): 8A: 27:53:64:B3:AF:01:CA:9 C: 2F:47:2 A: 50:16:E4:40

    C:\Oracle\MiddlewareMob\jdk160_24\bin >

    I tried to recreate the file of keys twice, but it did not help. I know that the entered password is correct.

    Any suggestions will be appreciated. Also, I started learning JQuery Mobile at the same time.

    Thank you

    S

    I had the same problem and then I realized that the tools-> preferences window is too small so don't see «Key Password"field within the «Realase» tab Just resize the window.

  • The data refresh of ADF page on click of a button.

    Hello

    I'm working on an application of ADF in which a table will be displayed to the user and the user can select any line and click on submit. The button "submit" click-it will call a pl/sql procedure and record will be not displayed on the page. I am able to do this but its data not refreshing page automatically. I Googled it and found below code.

    protected void refreshPage() {}
    FacesContext fctx = FacesContext.getCurrentInstance ();
    String refreshpage = fctx.getViewRoot () .getViewId ();
    ViewHandler ViewH = fctx.getApplication () .getViewHandler ();
    UIViewRoot UIV = ViewH.createView (fctx, refreshpage);
    UIV.setViewId (refreshpage);
    fctx.setViewRoot (IULA);
    }

    Even after calling this code, I still need to go and delete the data after? in url only so it updates the date.

    Please suggest how to achieve this.

    Thank you

    Angelica

    Hello

    the links provide only half of the solution. You create an ActionListener reference between the button send and a bean managed. The managed bean then calls the call to the stored procedure to then perform the refresh of the data and the user interface components

    {} public void submitAndRefresh (ActionEvent submitButtonEvent)

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    call the method server that calls the stored procedure...

    ... Add your code here...

    PL/SQL has been executed, re - run the table

    DCIteratorBinding iter = bindings.findIteratorBinding("theTableIterator_name_as_in_PageDef");

    iter.executeQuery ();

    Then, update the table in the user interface

    RichCommandButton submitBut = submitButtonEvent.getUIComponent ((RichCommandButton));

    Find the table (assuming that no collection of Panel is used)

    Table richeTableau = submitBut.findComponent ("tableId_as_schon_on_af_table_tag") (richeTableau);

    ADFFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance ();

    adfFacesContext.addPartialTrigger (table);

    }

    Frank

  • Panel tab with refreshment of parts problem

    Hello

    I have a jsf page that has a tab inside Panel. On each tab, I bounded task flows as a region. I've been updating and committing a task 2 task flow1 (tab1) (tab2) data. But when I changed to the tab1 tab2, the picture of the tab2 is not not refreshing and not displaying is not validated data.

    So my question is, is there a way to restart BTF on each switchboard? Or y at - it a way to cool off just tables in task flow default activities?

    JDev version: 11.1.2.2

    You can play with the refreshCondition... try to put a value that evaluates to true when you click on the tab (disclosureEvent).
    Other methods-
    How to refresh a workflow when the tab is opened?
    http://adfdeveloper.blogspot.in/2012/05/task-to-refresh-task-flow.html
    http://rimmidis.blogspot.in/2010/09/refreshing-task-flow-in-ADF.html

  • ConvertColor ADF problem

    Hello

    I am trying to use the color of the adf and I am facing a problem. Basically, I just try to display the string of color as the color code and here is my code.
    <af:inputColor label="#color" id="ic2" compact="true" simple="true" readOnly="true"  value="#{row.DeptColorcode}">
    <af:convertColor patterns="#RRGGBBAA" transparentAllowed="true"/>
    The color code strings are as #ff0000ff so I guess the color model that I've specified is correct. But it does not work. Can someone help me check the code? Thank you.

    Kind regards

    K.Hein

    Published by: K eh on April 18, 2011 11:04

    Looks like you have to do a work around that the inputColor is unable to manage the channel (she waits a java.awt.Color).
    Take a look at this {: identifier of the thread = 578024}
    Steve Muench provided a solution at the end right.

    Timo

  • 10.1.3 to 11.1.1.2.0 ADF ADF: problem of Migration

    Hi all

    I have a 10.x application built on business ADF for the model layer (no DB, only webservices) component and ADF - JSF to view layer.
    I try now to migrating the application to JDeveloper 11 and have had few errors during migration (I used standart Wizard comes with JDeveloper 11).
    but, meaner I can't build model layer after migration - build process get these errors:
    "{class name} is already defined in this compilation unit.
    all classes to extend oracle.jbo.server.ViewRowImpl.
    I checked and the structure of the source model has not changed since the migration.

    What could be the problem?

    Thank you

    HM, never seen cela when I migrated a few projects.
    The reason is that11.1.1.2.0 use javac to compile the sources while 10.3.1 uses JOC the compiler to java to oracle which is less strict.

    Try to organize imports (I remember that this can be a problem).

    Timo

  • Link command ADF problem

    Hi all

    I use Jdeveloper 11 g. I have a master / detail relationship tables order and OrderItem. I have an edit page command that has modifiable order information and a table read-only ADF that contains a list of items associated with the current command. I have a link to ADF command on the LineItemId column in the table. When I click on the link, it will take me to the edit page of point. The problem is, whenever I select any element in the table, I've always had the first item to be loaded into the page of the item change. Someone have any ideas what I did wrong?

    Here is the part of the code connects to the command binding,

    < af:column sortProperty = "LineItemId" sortable = "false".
    headerText = "#{bindings." OrderItemsView2.hints.LineItemId.label}.
    ID = 'c4' >
    < af:commandLink actionListener = "#{bindings.setCurrentRowWithKeyValue.execute} '"
    Text = "#{rank." LineItemId}.
    Disabled = "#{!}" Bindings.setCurrentRowWithKeyValue.Enabled}.
    "ID ="cl1"partialTriggers =": t1.
    action = "goOrderItemDetail" / >
    < / af:column >

    Thanks in advance,

    John

    Published by: john wang on August 20, 2009 07:31

    Hello

    If the point editing page uses the same data control such as the one that is displayed on the edit page command you need not to use setCurrentRowWithKeyValue.
    He should be positioned on the line concerned.

    As a side note setCurrentRowWithKeyValue requires a value for the value of the key. This is possible by creating a data (e) in the definition of page links
    for the setCurrentRowWithKeyValue binding.

    HTH
    Paul

  • Fast refresh materialized view problems

    I have two databases (A and B).

    In A database, user NICK has a table called COLOUR_MASTER.
    Also in this database, NICK issues creating materialized command newspaper view colour_master with the primary key, including the new values (and Yes, there is a primary key defined for this table)
    In database B, there is a link of database called A_LINK, connect, Nick, identified by password using 'dbA ';
    In database B, user IAN also creates a materialized view CM_MV cool off quickly in select * from colour_master@A_LINK

    This statement is done correctly, and there are several million lines in CM_MV when it's done.

    Immediately, IAN issued this command:

    Start
    dbms_mview. Refresh ('CM_MV');
    end;

    .. .and after a small pause, it gets the error

    ORA-12008: error path refresh materialized view
    ORA-02068: following sever error of A_LINK
    ORA-03113: end of file on communication channel

    One more + "select count (*) of colour_master@A_LINK" + subject immediately manages to return the correct number of records in the database so A 3113 is a bit misleading, I think that, in this case have crash, the database remains accessible at all times, there is no network problem (database A and B are both located in the same server so it of not like I'm trying of) connect to halfway around the globe).

    The only thing I can think is that there is a permissions issue causes this error. The creation of MV because is made via a link, it is not a problem of IAN see all appropriate, but once the updates come into play, it is perhaps.

    Any who can shed light on why I can't do the fast refresh from the view, I can create joyfully, please?

    I'm surprised no one asked you to do what is obvious: try to do a select * from colour_master@A_LINK, without that being wrapped in a create materialized MATERIALIZED view. Just do a simple select * from...

    My bet is that you will get an error ORA_22992 can not use selected from the remote tables LOB Locators . And if you can't do a simple select * in a remote table, I suspect that you can reasonably expect Fireworks when you try to create or refresh a view materialized on such a thing!

    Here's a quick test:

    In the 1 database:
    =========

    SQL> create table A (col1 varchar2(2), col2 clob);
    Table created.
    
    SQL> alter table A add constraint A1 primary key (col1);
    Table altered.
    
    SQL> insert into A values ('AA','This is an entry into a clob column');
    1 row created.
    
    SQL> commit;
    Commit complete.
    
    SQL> create materialized view log on A with primary key including new values;
    Materialized view log created.
    

    In the database 2
    =========

    SQL> connect ims_global/v0yager1@ussd
    Connected.
    
    SQL> create materialized view B refresh fast as
      2  select * from A@remotedb_link;
    
    Materialized view created.
    
    SQL> exec dbms_mview.refresh('B');
    BEGIN dbms_mview.refresh('B'); END;
    
    *
    ERROR at line 1:
    ORA-12008: error in materialized view refresh path
    ORA-02068: following severe error from REMOTEDB_LINK
    ORA-03113: end-of-file on communication channel
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2251
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2457
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2426
    ORA-06512: at line 1
    
    SQL> drop materialized view B;
    Materialized view dropped.
    
    SQL> create materialized view B refresh fast as
      2  select col1 from A@ims_link;
    
    Materialized view created.
    
    SQL> exec dbms_mview.refresh('B');
    PL/SQL procedure successfully completed.
    

    Which seems to reproduce your problem rather well, I think.

    I don't know if there is no work around for this. I mean, obviously you can't miss the CLOB column in your statement of 'create a MV' as I just did, but I don't know if you're still allowed or expected to be able to create a MV on lob columns and that such and such correction will allow you to do. Maybe someone else can provide this information.

    But at least you won't have to play Russian roulette with your init.ora parameters!

  • Regional settings please help ADF problem

    I use ADF to develop a multilingual application
    I have a problem with the locale in dialog boxes

    In the index page, I placed two buttons, one for English and one for Arabic, I used the following code
    FacesContext ctx = FacesContext.getCurrentInstance ();
    UIViewRoot uiRoot = ctx.getViewRoot ();
    Locale locale = new local ("ar");
    (local) uiRoot.setLocale;

    works quite well with normal JSF navigation with false redirection
    but when you use the dialog box (Ex: dialog: FAQ), it does not work.
    I tried to put the local tag property of view in the JSF dialog box to be an attribute of the managed bean, but it doesn't also

    Help, please

    I don't see this error, but you could do more defensive custom page lifecycle code by changing lines 37-47, of CustomFacesPageLifecycle.java of:

          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
    

    to do this instead:

          if (lfContext.getBindingContainer() != null) {
          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
        }
    

    I'm not used to work in a locale from right to left, myself, not sure if who will present other problems.

    I just wanted you to see an example of a solution of two local which you can change if all goes well then if necessary to ensure that it works for specific local both, you need to press.

Maybe you are looking for