How to get the initial state of JSF PAGE IN ORACLE ADF

Hi everybody
my Jdeveloper version is 12.1.3
I'm building my JSF pages based on a template that has a navigation pane which contains command navigation items , every one of them (command navigation items) appears as a link at runtime and calls a JSF page , I wish to get the initial state for any page when leaving it then entering such page again , and I would like to know what is the suitable place to write the code to do this task.
many thanks !

Clear the cache by adding the following to each jsf page.
<%
response.setHeader("Cache-Control","no-cache"); 
response.setHeader("Pragma","no-cache");
%>

Similar Messages

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to get the previous state of my data after issuing coomit method

    How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )

    >
    Is there any way to get the state apart from using
    offline storage ?As I said the caller keeps a copy in memory.
    Naturally if it is no longer in memory then that is a problem.
    >
    and also what do you mean by auditlog?
    You keep track of every change to the database by keeping the old data. There are three ways:
    1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
    2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
    3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
    All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
    Note that ALL of this is persisted storage.
    I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available.

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • How to get the initial (first) transaction

    Hi, everybody.
    I need to get the initial (or first) transaction, from which the current was called. Does anybody know how?
    Example: Tr. FEBAN after some operations calls FB05, then in OPENFI-logic SY-TCODE = 'FB05'. How can I get 'FEBAN'.
    Maybe there are some system functions?
    Thanks.

    Hi Aidar,
    Unfortunately, there are some insurmountable barriers in SAP. When a transaction calls another one using CALL TRANSACTION, a new internal mode is created, that cannot see the first one, except when programs communicate explicitly between the 2 using the SAP memory (get parameter id, set parameter id), ABAP memory (export to memory id/import from...), shared memory.
    Only Chen's answer makes sense here. You may also debug just before the CALL TRANSACTION 'FB05' or LEAVE TO TRANSACTION 'FB05' (by debug you can simply add a soft "breakpoint at statement" CALL TRANSACTION or LEAVE TO TRANSACTION to make the system halt automatically when the statement is reached) where you'll maybe find some data transferred to the memories I mentioned above, which you could then read from your code to know to say if it comes from FEBAN.
    Sandra

  • How to get the SQL statement

    I cannot figure how to get the text(SQL statement) from a system view(i guess it is in a system view... but witch??). 'Till now i have the sql_address and the sql_hash_value..
    I know it is possible.. EM does it ... so i should be able to do the same..
    ps:I use 9.2

    v$sql ?

  • How to get the SQL Statement of a report region?

    For example: The SQL of report region such as "SELECT A,B,C FROM T1 WHERE A = :P10_A".
    I hope to get the converted statement (the variable has been replaced), like this:
    :P10_A = 'TOM', SQL: "SELECT A,B,C FROM T1 WHERE A = 'TOM'".
    THX.

    I agree with John with the usual caveat about using bind variables.
    In other words, you should use
    SELECT A,B,C FROM T1 WHERE A = :P10_Ainstead of SELECT A,B,C FROM T1 WHERE A = 'foo'so that the shared pool doesn't get clutterred with copies of the same (sharable) SQL.
    Even if you use the "PL/SQL function returning a SQL query", be sure to use bind variables in your SQL and not "glue in" session state by concatenating it into the query.
    Thanks.

  • How to get the select statement from the DISPLAY_ERROR; window

    Hi
    Do you know a way to get the select statement that is displayed in the
    display_error; window ( select hola from u where a = :d),
    this for saving to a text file.
    Thanks in Advance.

    You must copy-and-paste it. You can't access that error from within Forms.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How to get the guid of currently opened page programatically

    Hi,
    Can any one of you please let me know how to get the guid of a page at database level which is opened currently?
    The requirement is I need to grab the url of a page which is currently opened by the user.
    Is there any way to get it from accessing the tables like wwv_things or wwpob_page$.
    Please suggest me how to get it.
    Thanks,
    Ravi.

    Hi Ravi,
    You may wanna explore the two API's (wwsbr_all_folders and wwsbr_all_items) and make a bridge to get the name of the portlets that appear on the page.
    something of the following nature should be enough to take you where you want to go. here c.name is the GUID of the item you are looking for.
    SELECT DISTINCT c.display_name,c.name,c.updatedate
    FROM portal.wwsbr_all_folders a, portal.wwsbr_all_items c
    WHERE a.LANGUAGE = 'us'
    AND a.id = c.folder_id
    AND a.caid = c.caid
    AND c.itemtype = 'baseportletinstance'
    AND a.Name LIKE 'MY_PAGE_NAME'
    order by 3 desc
    this will work in the portal but not in the sqlplus or any querying tool. for that purpose, it will work once you establish the context of user.
    hope that helps!
    AMN

  • [CS3] How to get the parent spread of a page?

    Hallo!
    I have the page UID.
    How to get the spread of this page?
    Thanks,
    Alois Blaimer

    You'll also need an IDataBase*, from any object in the same document.
    Then you can follow IID_IHIERARCHY one up to the kSpreadLayerBoss, two up to the kSpreadBoss or just refer to the hierarchy root.
    Dirk

  • Precalculation server how to get the initial "ready" status

    Hi guys,
    i have scheduled 50 workbooks over night in 5 minute distances. The precalculation server is one physical server with 3 registered precalc server. Multiinstance precalculation is started. And when i come in the morning i see in RSRD_Log
    with red icon the message "The system searches for the next free preliminary calculation server" and also "No free precalculation servers found ('                                              100" and the last message "An active RFC server could not be found ". Before i went i restarted the server so the precalculation registrations should all be green and ready and in an initial state.
    From 0 o clock till 7 o clock they are all red the registrations and from 8 o clock they are green again and work fine. How come?
    Does a reboot not put them into initial state? Do i also have to clear the queue from RSPRECADMIN? From 50 scheduled workbooks just 10 reach their target via mail. What am i doing wrong?
    Thanks and kind regards,
    Murat

    Hi Vikram,
    there are no paralel processes defined they are all scheduled sequentially. They are 70 scheduled in 5 minute distances.
    But no parallel processes. What could be the reason?
    Thanks and kind regards,
    Murat

  • How to get the initial name.

    public class asd{
    public static void main(String[] args){
    asd dkd =new asd();
    how to show the object's name(dkd)?

    Are you trying to obtain the reference variable name is?
    Here is an example:
    String str = new String("God is real!"); // "str" would be the reference variable nameIf you call the toString() method you will won't get "str". You would get "God is real!". Look at my example below:
    String str = new String("God is real!"); // "str" would be the reference variable name
    System.out.println(str.toString());OUTPUT:
    "God is real!"
    If you do a to string on like this:
    asd dkd = new asd();
    System.out.println(dkd.toString()); The Output would look like this:
    "asd@lfee6fc"
    I'm not clear on what you mean by object name, but using the toString() method wouldn't be how I would get it. If you mean the Class name you could use the getClass().toString() methods to obtain the Class name. That would give you "java.lang.String" for the first example and the second ouputput would be "class asd".

  • [6136] How-to get the initial IMPS client ?

    Hi, I have a Nokia 6136 which supports IMPS but with presence capability only. The chat capability has been removed by the operator but apparently, according to its support, it is possible to get the original configuration from Nokia. Is there a way to get the full IMPS client (with chat and presence capabilities) OTA ? Thanks for your help. -- kael

    Hi Aidar,
    Unfortunately, there are some insurmountable barriers in SAP. When a transaction calls another one using CALL TRANSACTION, a new internal mode is created, that cannot see the first one, except when programs communicate explicitly between the 2 using the SAP memory (get parameter id, set parameter id), ABAP memory (export to memory id/import from...), shared memory.
    Only Chen's answer makes sense here. You may also debug just before the CALL TRANSACTION 'FB05' or LEAVE TO TRANSACTION 'FB05' (by debug you can simply add a soft "breakpoint at statement" CALL TRANSACTION or LEAVE TO TRANSACTION to make the system halt automatically when the statement is reached) where you'll maybe find some data transferred to the memories I mentioned above, which you could then read from your code to know to say if it comes from FEBAN.
    Sandra

  • Where/How to get the initial set of loops

    GarageBand is displaying the initial loops greyed out, and when I click one a dialogue comes up saying they're not installed. I'm given the option to Download now, later, or from disk. Since iLife came installed on my mac I have no disc. So's I select download now, and it shuffles me over to Software Update... which informs me that there are no new updates and quits itself. Attempting to re-open the dialogue in GB gives me a message saying that the download/install is underway, but there is no evidence of such.
    So's... is there any way I can manually download and install these loops? Or, at the very least, remove the greyed out one from the library?
    I'm suspecting that I refused this update early on or something... I've had my mac for about a year and a half but no need to use GarageBand until now.

    http://www.bulletsandbones.com/GB/GBFAQ.html#noloops
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How to get the initial boot log [solved]

    Hi, I would like to retrieve the initial log from the kernel when it startups , it seems that sometimes something fails but it happens to fast , and I can't see it correctly.
    Any idea ?
    Thanks.
    Last edited by aclemente (2012-12-12 22:17:50)

    aclemente wrote:
    Hi, I would like to retrieve the initial log from the kernel when it startups , it seems that sometimes something fails but it happens to fast , and I can't see it correctly.
    Any idea ?
    Please search the wiki: almost everything you need has already been documented...

Maybe you are looking for