How to refresh JSFF page only when page loaded using ADF 11g

Hi
I am facing an issue with prepreModel() usage in the .jsff page fragment. I want to invoke executables only when the specific jsff page get's loaded. I tried using 'prepareModel' as a refresh condition, but I can see always executables are getting executed. Does 'prepareModel' behaves differently for .jsff when compared to .jspx ?
Thanks in Advance

Hi,
ADF Regions have a slightly modified lifecycle. However, prepareModel behaves the same. Its marking a specific time in the ADF request lifecycle when the iterators are refreshed. Try prepareModelIfNeeded
Frank

Similar Messages

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How AP behaves for withholding tax when vertax is used for tax calculation

    Hi,
    I am currently working on R12 implementation, I have requirement where business has to calculate the USE tax and withhold it from being paid to the supplier in case if use tax is not mentioned on the Invoice and pay it to tax authorities directly by business. Our client has Vertax third party tax engine. now the question is does it works same as it is in oracle payables in cases if client want to use vertax to calculate tax. How oracle behaves for withholding tax when vertax is used for tax calculations.
    Regards,
    Shashi.

    Hi
    Cheque Go to Menubar of  which document you have to  post for getting the WHT value  Menubar Settings - editing options -  remove the tick calculate tax on net amount.
    Rgds
    Vani

  • DIM IDu0092s are polluted only when we load the Master data and SIDu0092s

    DIM ID’s are polluted only when we load the Master data and SID’s are polluted only when load the retraction data. System automatically performs the reconciliation of DIM and SID’s  when we delete the transaction and master data.
    a.     True
    b.     False

    Hi,
    You can use the mapping section of the transformation file for this purpose. It should be something like:
    *COL(5) + *Str(_) + *COL(1)
    I am considering that the 5th column of your file is the property. The 1st column is the ID.
    Please take a look at the below link for more information:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/5d/9a3fba600e4de29e2d165644d67bd1/content.htm
    Hope this helps.

  • ORA-01460 error only in production enviorment in ADF 11g application

    Hi ,
    We are using ADF 11g rel 1 11.1.1.4.0
    And database is
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    All our enviornments are running the same database
    But when we are deploying the application in Production we get the Error
    JBO-27122: SQL-fejl under forberedelse af sætning. Sætning:
    select DB_TST_API.test_proc(Id1, id2) from table;
    ## Detail 0 ##
    java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested
    While executing the query which has a call tp API and input variable
    select DB_TST_API.test_proc(Id1, id2) from table;
    The DB function is defined as
    the FUNCTION test_proc(p_value IN VARCHAR2, p_list IN VARCHAR2) RETURN number;
    The input parameter is only 10 digit integer in ADF application, there is a logical difference that the DB function takes a string and ADF is supplying with Integer, but the code has worked before and has suddenly started giving this error
    The code also works fine on all other test eviornments
    Also the sql query when run from sql devleoper on production DB does not give any error
    Its becoming difficult to find out what could be causing this only on production enviornment

    In ANY case, I'd be using explicit conversions here, not implicit ones, so my recommendation would be one of these:
    a). Use TO_CHAR on the input
    b). Use Java to convert the integer to a string
    c). Change the functionto take a NUMBER as the parameter (if it really is a number)
    d). Write a wrapper for the function. The wrapper should take a number and convert it using TO_CHAR and call the real function
    John

  • How stop sound on flash movie when page reloads?

    CLICK
    HERE TO VIEW THE SITE
    The problem is obvious. The flash banner has sound. Whenver
    you go to ANY page the page reloads and the sound replays.
    This template only allows you to use one header, so I cannot
    make 1 with sound and 1 without sound.
    Any ideas how I can handle this? Not sure if frames will work
    in this case. Your ideas????

    Use sharedobjects, they are kind of like cookies. You could
    do something
    similar like this sample I made here:
    http://www.smithmediafusion.com/blog/?p=212
    If the user has already seen your banner, make it go to a
    different frame
    and play somethin else OR tell the sound not to play. Make
    sense?
    Dan Smith > adobe community expert
    http://www.dsmith.tv
    "robertnzana" <[email protected]> wrote in
    message
    news:fgqn87$5n1$[email protected]..
    >
    http://stores.channeladvisor.com/Auto-Parts-Direct-To-You/
    >
    > The problem is obvious. The flash banner has sound.
    Whenver you go to
    > ANY
    > page the page reloads and the sound replays.
    >
    > This template only allows you to use one header, so I
    cannot make 1 with
    > sound
    > and 1 without sound.
    >
    > Any ideas how I can handle this? Not sure if frames will
    work in this
    > case.
    > Your ideas????
    >

  • With every click (on FireFox start page,only) the page grows in magnification,how do I shrink it back to normal size?

    This problem only exists on that one "page".

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    There are other things that need attention.
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r12
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • I might have a virus or trojan on my MacBook Pro. Unwanted pages open when I'm using my yahoo account. What do I do?

    Whenever I use my yahoo account, a page with some fishy offers opens and I need to click a few of "Yes, I really want to leave this page" before I can exit it! If I don't click on all those "Yes"'s I'm not able to quit Safari (only when I do Force Quit). Reading about recent trojans and such I'm worried, this might be the case. I should say, it's always the same page that opens. Thanks for your help!

    Sounds like a problem with Yahoo itself, then.
    One thing that could help would be to clear your browser's cache. Open Safari and look for an Empty Caches item in the Safari menu. If you have a newer version of Safari, it won't be there. In that case, you will need to go to the Advanced pane in Safari's preferences and check the box to show the Develop menu. Then, from the Develop menu, choose Empty Caches. See if that helps.

  • How to Auto Select some RadioButton on page load using ADF/JSF

    Hi,
    I am learning ADF and need some help. I have multiple radio buttons and couple of text boxes on my page. How can I make some radio button be selected based on some value from a database table and also populate the text boxes with the corrosponding value when a page loads. Any tips on how it can be done using ADF. Any sample tutorial will be helpful.
    Thanks

    Hi,
    when you e.g. use ADF BC then the radio button should be selected automatically based on the value of the attribute. If the row is new then you can have a default value specified in the ADF BC ViewObject attribute.
    However, if you just dragged the radio button and checkboxes onto the page - not using any ADF binding - then you will have to create a managed bean with a field variable (incl. setter/getter methods) to link the radio button's value property to it using Expression Language
    Frank

  • How to enable a button only when a tilelist item is selected

    Simple question but it seems quite awkward to me. How do I enable a button only when an item within a tilelist is currently selected?
    For example lets say if I have a button called button1 that is disabled by default and a tilelist called tilelist1 what would I have to add into the brackets of the following code (enabled property of the button) to ensure that the button is only enabled when an item in the tilelist is currently selected but disabled when no items are selected:-
    enabled="{}"

    enabled="{tilelist1.selectedItem}"
    that should do it, it's making an implicit comparision with null (tilelist1.selectedItem == null) which will result in a boolean.
    SelectedItem is null when nothing is selected , not null when something is.

  • Hello sir , when i load a adf.ly page on fiefox it is totaly blank page

    i have tried to load different adf.ly pages but same happens always it only happens to adf.ly pages

    You have not provided much information we do not even have any idea of the device type or OS you are using.
    The site you link works ok for me. Try reloading the page using Ctrl + F5 if that does not work then try clearing cookies for the individual site.
    *[[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]'''_delete-cookies-for-a-single-site'''
    * [[Websites look wrong or appear differently than they should#w_clear-the-cookies-and-cache]]'''_clear-the-cookies-and-cache'''
    *[[Firefox can't load websites but other browsers can]]
    Have you got security related software or adblockers that could be interfering with that particular site ?

  • How to refresh the popup evrytime when i am clicking the button?

    Hi,
    My requirement is i have one button on that i place popup in this pop i drag one taskflow which is having fragment that fragment is mapping with crateinsert
    so when i am pressing this button pop is generated with inserting mode after that i add data save also successfully completed. then adding for another record
    press this button the data is not refreshed previous entered data only opened ..
    can anybody help me this issue
    Thank you.

    The problem is that you have to refresh the btf inside the popup. For this to work you have to do a couple of steps which you can read in Frank's sample no. 53 'Refresh a bounded task flow displayed as an ADF Region in a popup' at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    Timo

  • How to automate and action only when a specifi event takes place ?

    E.g. I want to have a workflow that launches specific applications only when Network manager detects a conection to the internet. Is that possible

    Never mind

  • Launchd: How to Run a Job Only When Waking?

    I want to run a script when the computer wakes from sleep. I've read everything I can find about launchd and cannot find a solution.
    I tried RunAtLoad, but it did not run the script when the computer woke from sleep.
    Is there a parameter for launchd that will run a job only when the computer wakes from sleep?
    I know other parameters like StartInterval will run any "queued" jobs when the computer wakes up, but I'm looking for a parameter that runs the job only when the computer wakes up.
    Any help is appreciated.
    Thanks
    Brett

    Sorry, but there is no capacity for that built into launchd.  You might be able to hack something together (I've tried before, with some limited success), but it will be easier and more stable to use sleepwatcher. 

  • How do I set the audience when I'm using Siri on my iPhone 5 to post to Facebook

    How do I set the audience privacy for when I’m using Siri on my iPhone 5 to post to Facebook?
    When I ask Siri to post a message to my Facebook Siri tells me what I have said and then asks tot post it, I then checked on my computer and the post is visible to "ME ONLY" I can change this on the computer and on my phone via the App but I do not want to be doing that all the time.
    If I post to Facebook via Siri on my iPhone 5 I want it at the default setting of friends only.
    So How do I change this?
    I posted the first one 2 minutes ago then went into Facebook via the App and changed it but did a second one hoping that the default privacy had changed but it was again to me only. As you can see via the padlock. Please help. Thanks

    What if you do need help or emergency situation while Posting FB via Siri is the fastest way to show you or someone is in danger, and he/she is dying because the post is Only visible to Me !?!?!?!???
    Anyone who uses FaceBook to get immediate help for life threatening emergency is mercifully removing themselves from the gene pool.

Maybe you are looking for

  • IPhoto video clips does not work in iMovie

    I just installed Leopard and ilife '08 into my MAC. The video clips from my iPhoto library are not shown properly in iMovie. I'm only able to hear the sound of the clip but unable to watch it. when i skim through the clip, i don't see anything on the

  • How do I configure a printer to use duplex all the time

    As with most companies, ours is on a push to go greener.  The IP department has decided that one thing that can be done is to encourage the use of duplex printers.  We have one, but from the Mac you must go in and specifically select printing on both

  • Double image when printing labels

    I am copying in a graphic for Avery round labels. Everything looks fine on the screen, but when printed, some (not all) of the labels have the image, plus a smaller version of the image on top of it. Kind of like an inset. I have reloaded the printer

  • Motion menu buttons in Layered menus

    I´ve got a PSD Layered menu and I need to have a preview of the film playing either as the button or just on the menu, either way I can´t get the track playing in the motion menu. Is there a way to do this? Thanks StooB

  • SAP GRC RM- Survey-Email problem

    Hi gurus, I am performing a Risk Survey via Email, I fill in the pdf and I send it back to the offline user. However, the Survey tab in the Risk Event is not updated. Any idea of how can I solve the issue? Thanks, Kind regards,