How to refresh/restore VIEW STATE of a JSF component?   urgent help needed!

AOA guys,
I am using Jboss 4.0.5, JSF 1.1.2 and DOJO framework to handle ajax request.
In my project, I am using A4J hidden fields to store values associated with an html anchor tag and use these values to update <h:outputText> dynamically (an ajax request).
But when i click that anchor link a more than 15 times the message appears as a prompt that view state couldn't be restored - reload page.
I think it is because that in JSF 1.1 default value of
om.sun.faces.NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION is 15, So i can't store more than 15 View Id of JSF components.
My Question is:
_Without shifting to JSF1.2, how can i handle this restore view problem in my Java Code using phase listener or some other way so that if this view state problem will occur it atomatically restore the view ids?_
Please reply me soon?

avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5229804

Similar Messages

  • How to refresh materialized view by trigger

    hi,
    im having a problem in refreshing materialized view through a trigger.
    CREATE OR REPLACE TRIGGER L_TRG_MARC_TEST
    BEFORE DELETE OR INSERT OR UPDATE ON MARC_BOOK_B_ENG
    BEGIN
    DBMS_MVIEW.REFRESH('TITLE_ENG_MV','C','',TRUE,FALSE,0,0,0,TRUE);
    END;
    Trigger created.
    SQL> DELETE FROM MARC_BOOK_B_ENG;
    DELETE FROM MARC_BOOK_B_ENG
    ERROR at line 1:
    ORA-04092: cannot COMMIT in a trigger
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 849
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 832
    ORA-06512: at "LIBQAL1.L_TRG_MARC_TEST", line 2
    ORA-04088: error during execution of trigger 'LIBQAL1.L_TRG_MARC_TEST'
    plz tell me how to refresh materialized view thru trigger,,and what is wrong in above mentioned situation.
    Regards

    DBMS_MVIEW.REFRESH implicitly commits. COMMIT is not permitted in triggers, as you can see, unless you use AUTONOMOUS_TRANSACTION.
    Try
    CREATE OR REPLACE TRIGGER L_TRG_MARC_TEST
    BEFORE DELETE OR INSERT OR UPDATE ON MARC_BOOK_B_ENG
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    DBMS_MVIEW.REFRESH('TITLE_ENG_MV','C','',TRUE,FALSE,0,0,0,TRUE);
    END;

  • How to Refresh Materialized views

    Hi All,
    How ro refresh Mv views manualy.could you pls provide definiation for refreshing the MV's manually.
    Thanks for your help.

    When creating the materialized view, you have the option of specifying whether the refresh occurs manually (ON DEMAND) or automatically (ON COMMIT, DBMS_JOB).
    You can use something like:
    EXECUTE DBMS_MVIEW.REFRESH('emp_dept_sum','F'); -- 'F' for fast refresh, 'C' for complete refresh
    For automatic fast refresh:
    CREATE MATERIALIZED VIEW emp_mv
    ON PREBUILT TABLE
    REFRESH FAST ON COMMIT
    ENABLE QUERY REWRITE
      AS SELECT empno, ename, dname, loc,
             e.rowid emp_rowid,
             d.rowid dep_rowid
        FROM emp e, dept d
       WHERE e.deptno = d.deptno;

  • Restore View State does not restore bean's internal variables

    Hi,
    In the Restore View State a new instance of the bean (in usage) is created and UI-component tree is restored.
    My problem is that i need to acces to the internal variables of the (old) bean, and they are not being restored to the new bean.
    In my case, I have a variable that is accessed in the submit-button action function, but this funciton is called by the new bean (where internal variables were not restored).
    Can anyone help me?
    thanks,
    portela

    I have never used x:saveState, juste read some information in the myfaces forum (I suggest to have a look at this forum, some useful information should be found there).
    In your web.xml, have you configured the save state on the server or on the client?
    <context-param>
    <description>
    State saving method: "client" or "server" (= default)
    See JSF Specification 2.5.2
    </description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>

  • Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Thanks for prompt reply, yes we have tried that but have now closed down the browser we where the photos were.
    We haven't sent up time machine, do you know whether there is any roll-back function on a Mac?
    Thanks

  • When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    Welcome to the Apple Community.
    You can't share preview files to an iOS device. There are several other options for pdf's such as Adobe Reader or iBooks.

  • Urgent help needed, can I restore N900 Backup file...

    i owned a N900 (now sold out)
    before selling i took backup of contacts from backup restore option in application section
    now i bought a N8 but i m not able to restore my contacts
    1. is there any way to restore them in N8?
    2. if not, can i convert them in TEXT or any readable format
    urgent help needed
    thanks in advance

    The backup procedures built into the phone are only designed for restoring to the same phone (ie: in case or data corruption, software update or repair etc.), they can't usually be used to restore to a phone with a different operating system.
    You should have backed up with Ovi Suite before selling the N900, that would have been able to restore to the N8.

  • How to refresh a view on click of a link in UI5

    Hi,
    I have created an SAPUI5 application with 1 view (main.view.js) in  Eclipse. I have a link in the view along with some input fields and buttons, on click of the link, I need to refresh view (main.view.js) . Can some one please help me on this?
    Regards,
    Lakshmi

    Hi Dennis,
         Try this link, it may give a tip
                   http://stackoverflow.com/questions/24528806/how-to-reload-a-specific-control-in-sapui5
    Regards
    Jagadish

  • How to refresh one View instance from another View Instance

    Hi ADF Experts,
    I have a requirement in which I have created two View Objects based on a single entity object.
    I am using a first VO to display data in a table and the second to update data to database.
    The commit will happen through a Global save button.
    But before the global save, I need to show the data using the First VO, which is inserted using the second VO.
    Can anyone help me on how to refresh the first VO to display the data.
    Thanks in Advance
    Mohan
    Edited by: 946185 on Mar 29, 2013 4:24 AM

    Hi Dileep,
    The first VO which I mentioned is based on two EOs and has a lot of calculated values.
    And to add to my worries there is a parent child relationship between the two EO's, where in parent is updated with one row and child with multiple rows.
    The multiple rows updation to the child should happen with a shuttle component in a different popup.
    So I am inserting everything programatically in the java code, where I need two use different VO to update parent and different VOs for the shuttle.
    I could get the data, if it is committed, but to add to the complexity, there is a global save button which should commit the data.
    So I want to get the data based on the EO update before commit to the database.
    Thanks
    Mohan

  • How to Refresh materialized view

    Hi,
    I am using 11G owb. I would like to know if any one can help me know if there is any easy to Refresh materialized view . I will be using this materialized view to source data from my maps. this map will be part of a process flow. i would like to refresh the materialized view before every run of the map in process flow.
    Thanks,
    Ash.
    Edited by: user591315 on Aug 6, 2009 1:26 PM

    A couple of approaches;
    * refresh the MV from a procedure in a pre map process operator (its an operator in a mapping), or
    * call the procedure from a process flow activity before the map
    Cheers
    David

  • Change base view state from a custom component

    I'm pretty new to flex and I'm having a small issue in change the view state from a component.
    My Application have 2 custom components called userlogin and main menu. In the main application page I have userlogin component in one state and the main menu component in another. I'm trying to change the state if the login in successful from user login to main menu. I have the following function written inside the login component.
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    This code worked when I had all the controls in the main page. But then I created components and included them in to components and now when the login is success, its giving the following error.
    ArgumentError: Undefined state 'MainMenu'.
        at mx.core::UIComponent/getState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UI Component.as:9908]
        at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9928]
        at mx.core::UIComponent/commitCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:9750]
        at mx.core::UIComponent/setCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:9701]
        at mx.core::UIComponent/set currentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6087 ]
        at components::UserLoginForm/__btnSubmit_click()[C:\Projects\WarrantyAutomation\src\componen ts\UserLoginForm.mxml:60]
    I'm sure this has something to do with accessing the states from a custom component, but I do not know how to change the state to the main menu. Please help me with this. Any help is greatly appriciated.

    Hi dasun1981,
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    If I am right the above function is in your userlogin component and the two components "userlogincomponent" and "maincomponent" are in main application file and the states were also defined in main application file.
    But in the function above the currentState refers to the state of the userlogin component and not the main application ...but the states are defined in main application file...that's the reason why the exception was thrown...
    Instead you replace the line in the above function with the below line:
    Application.application.currentState = "MainMenu";
    Please mark it as answer if it helped you.
    Thanks,
    Bhasker Chari

  • Urgent help needed! How do I use Time Machine to restore my System disc?

    I need urgent help. First I discovered that my Library folder was empty. When I tried to restore the library to an earlier version via Timemachine it would not let me because it said the system was in use. Trying to start-up from another system on another internal drive and using various disc repairs resulted in the whole volume to disappear.
    Question is how do I get the earlier system from my Timemachine backup drive? I have another Mac where I can attach the TIme machine HD to. Can I restore it from there and then copy the files over to my corrupted disc? All my programs are on there as well, which would take me days to re-install and then there are the other bits, emails, photos etc. Can anyone help?

    lightandmagic wrote:
    Thanks for your sympathy Pondini and the encouragement. You just reminded me that I will lose a whole working day restoring !!! Do you happen to know where the emails are kept on the system and the address book? I better nick those as well as my other life sustaining bits before its too late. I don't trust anything any more.
    I don't know what you mean by "nick those." Time Machine will put everything back the way it was at the time of the backup (unless you'd excluded things).
    Do you mean you want to restore things from the period after the backup you selected?
    For Address Book or Apple Mail, start the application, then +Enter Time Machine,+ navigate to your latest backup, and you'll have a prompt to restore. For Mail, you can restore an entire mailbox. When you exit from TM, you'll see a new folder in your Mail sidebar with the restored items, so you can sift through them and move, delete, or leave them as you wish.
    Other items, you'll have to locate and restore via the Finder > Time Machine.

  • I found my appdata how do I restore the missing backup I found. I really need my sms

    Please help, I lost a backup and found another one a little more recent and I need to get back some sms texts. how do I restore from the backup in the appdata?

    If you have Windows 7, copy the backup to this location:
    %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Then relaunch iTunes and the backup should be listed in iTunes>Preferences>Devices.  Confirm that it is, then disable automatic syncing by going to Preferences>Devices and checking "Prevent...from syncing automatically".  Then connect your phone, right-click on its name in iTunes and select Restore from Backup, choosing the newer backup to restore from.

  • Urgent help needed... PL/SQL Insert statement

    Hi...
    I need some urgent help on this project. I have a 2 column table with values that need to be inserted into another existing table which has a sequence.
    This is the 2 column table:
    FUND YEAR
    29587 05
    29587 07
    Existing table:
    Name Null? Type
    LIST_ID NOT NULL NUMBER(6) -- This is a sequence
    WEB_USER_ID NOT NULL VARCHAR2(10)
    RESOURCE_TYPE NOT NULL VARCHAR2(8)
    LIST_TYPE NOT NULL VARCHAR2(10)
    LIST_NAME NOT NULL VARCHAR2(50)
    LIST_CODE_1 NOT NULL VARCHAR2(6) -- FUND from table above
    LIST_CODE_2 NOT NULL VARCHAR2(6) -- YEAR from table above
    LIST_CODE_3 NOT NULL VARCHAR2(6)
    LAST_UPDATED_DT NOT NULL DATE
    LAST_UPDATED_BY NOT NULL VARCHAR2(10)
    LIST_CODE_4 NOT NULL VARCHAR2(20)
    The columns from table 1 (FUND, YEAR) correspond to columns (LIST_CODE_1, LIST_CODE_2) in table 2. The column LIST_ID is a sequence. I can put in sysdate for LAST_UPDATED_DT and my initials SN for LAST_UPDATED_BY. This is going to be for 2 unique WEB_USER_IDs which would be in the WHERE clause. I will be inserting 2200 rows for each id. A single insert statement would look like this -
    INSERT INTO EXISTING_TBL (list_id,web_user_id,resource_type,list_type,list_name,list_code_1,list_code_2,list_code_3,list_code_4,last_updated_dt,last_updated_by) VALUES ('470027','WEBUSER','GL','FUNDFYF',' FUND BALANCE SUM','12010','01',' ',' ',{ts '2010-5-19 10:16:9'},'SN')
    How would I do this to insert the 2200 values from my 2 column table to the existing table?
    All help is greatly appreciated!!
    SN

    Hello ,
    I think this will work
    INSERT INTO TABLE2
         LIST_ID,
         WEB_USER_ID,
         RESOURCE_TYPE,
         LIST_TYPE,
         LIST_NAME,
         LIST_CODE_1,
         LIST_CODE_2,
         LIST_CODE_3,
         LIST_CODE_4,
         LAST_UPDATED_DT,
         LAST_UPDATED_BY
    SELECT
         SEQ.NEXTVAL,
         FUND,
         YEAR,
         <VALUE FOR RESOURCE_TYPE>,
         <VALUE FOR LIST_TYPE>,
         <VALUE FOR LIST_NAME>,
         <VALUE FOR LIST_CODE_1>,
         <VALUE FOR LIST_CODE_2>,
         <VALUE FOR LIST_CODE_3>,
         <VALUE FOR LIST_CODE_4>,
         SYSDATE,
         'SN'
    FROM
         TABLE1
    REGARDS
    Rahul Sharma

  • I need to sort and organize all my email addresses in apple mail? - where are they and how can I organize and copy them ? urgent help needed please

    really need urgent help - where do I find the entire list of all my email addresses? and how do I sort and organize them into folders ?

    really need urgent help - where do I find the entire list of all my email addresses? and how do I sort and organize them into folders ?

Maybe you are looking for

  • Mac book starts up well, but without screen

    HI guys! today i restarted my Macbook pro-Lion, after starting up, i have no screen,even no gray screen or nothing els. However, my keyboard works; lightening,sound control or other keys are working properly. I can control the volume, and also contro

  • How smart is my mac? can use the AC adapter as a main power source and not charge the battery when its fully charged?

    does my mac use the AC adapter as the power source when its plugged in and the battery is full? is it smart to enough to split?

  • Printing a quotation mark

    hello, here is the questions. :) i'd like to print a single quation mark (') into results column. select 'My name is ' || name || '.' from table ex results : My name is 'aaa'. things like that...

  • [CC] Search&Replace: Bug only with Regular Expressions

    Can you confirm the following behaviour/bug? Steps to reproduce: 1 Create a new document in DW CC 2 Enter that text in the source code view: <p>€</p> 3 Open Search&Replace Field Search in: Current document Field Search: Text Field Search (3rd Field):

  • Unrecognized file formats

    I am new to Mac and just got my first Macbook Pro. I have a collection of over 35K images on an external hard drive. I imported those images into iPhoto. When it was done, I received the message that 2,700+ files were not able to be imported. I tried