Reset af:inputText values and clear cache

Greeting everyone!
I use JDev Version 11.1.2.3.0
I have three af:inputText components, all pointin to persistent attributes from one VO. One of these fields gets it's value calculated (in a managed bean) from the others two values. This is done on value change of these two fields. The problem is when i reset these other two fields (meaning, when i delete the content inside of them). The value on the third field does not to change at first. From the controls i've done, it seems that it keeps a value in a cache. So when i clear the first field, the value of the third field remains the same, and when i clear the value from the second field too, then the third field gets the value cleared from the second field.
I know this might be a bit confusing so here is the basic code snippet i've tried:
    public void getTotalContractInfo(ValueChangeEvent valueChangeEvent) {
        System.out.println("A value is changing!");
        if (tvshContractInfo.getValue()!= null && it14.getValue()!= null) {
           BigDecimal x = new BigDecimal(tvshContractInfo.getValue().toString());
            BigDecimal y= new BigDecimal(it14.getValue().toString());
            BigDecimal i = new BigDecimal(100);
            BigDecimal m = (y.multiply(x)).divide(i);
            totalContractInfo.setValue(y.add(m));
        else if (tvshContractInfo.getValue()== null && it14.getValue()!= null){
        totalContractInfo.setValue(Integer.parseInt(it14.getValue().toString()));
        else if (it14.getValue()== null ){
        it14.resetValue();
            totalContractInfo.resetValue();
Any ideas what is happening? I've tried several techniques to refresh the components or clear the binding cache, but none of them seems to work.
Thank you in advance!

After resetting value, try doing valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
or
((UIXEditableValue)valueChangeEvent.getComponent()).resetValue();
Thanks

Similar Messages

  • Transient entity attributes and clearing cache

    I have an entity with both queriable and transient attributes. One of the transient attributes uses the persistent primary key of the entity object as well as an attributes retrieved from another entity via an association in order to execute a CallableStatement. This transient attribute uses the following code:
    public Number getReflectallow() {
    if ((Number)getAttributeInternal(REFLECTALLOW) == null) {
    return getReflectAllowFromDB();
    } else {
    return (Number)getAttributeInternal(REFLECTALLOW);
    The getReflectAllowFromDB also sets the value in entity cache using the populateAttribute method.
    My problem is that this database value can change and there are certain points in the application where I would like to clear the cache and rebuild all new values for this attribute. I have tried using both getTransaction.clearEntityCache() and the clearCache() on the view object but neither affects this field. I also cannot loop through the view and reset that attribute to null because it dirties the transaction. I'm assuming that clearing the cache does not work because the attribute is transient. How can I clear the values from cache?

    Any help with this Shay?

  • IE will load my excite home page but Firefox won't after following all of the suggestions , enabled cookies, java script and cleared cache.

    Was working fine for years until virus scan today. It will pull up the site, but not allow me to access my personal home page. Running XP on one laptop and Vista on the other. Same problem with both machines after running scan. Only problem appears to be accessing my home page on excite.com. Have enabled both cookies and java script as well as clearing cache.
    Can access excite home page on both IE and Chrome.

    Thanks for the suggestion.Working my way through, but no success yet. excite.com comes up but as soon as I click on "sign in", I get the error screen even though I have enabled cookies and java script.
    '''''The browser you're using is not allowing you to sign in to Excite.
    Right now, your browser's settings are configured to disable cookies and/or javascript. In order to access your account, you must change your browser's settings to accept both cookies AND javascript. '''''

  • Clear Cache-Single Page Item

    I need to clear the cache for a single page item. This is what I have done:
    - Created button call Reset Appt Time
    - Created Process - Clear Cache for items, Source has the page item I need to clear - P3_APPT_DT_TM
    - Created Branch - so that when Reset button is pressed it branches back to same page (3)
    Everything works, but the cache is cleared for all the items on the page not just the one page item I specified.
    Please advise.

    Hi,
    I am not sure if you could clear cache of a single item, but you can initialize any item to null or any values, look for the Action box of Page Branch, (set these items and set these values ).
    Regards,
    Manish

  • Item Clear Cache After Submit Press

    hi,
    i have 5 item on a page Like
    P1_A,
    P1_B,
    P1_C,
    P1_D,
    P1_E .
    I want here when i press submit button then value of P1_A, P1_B, P1_C, P1_D, P1_E should be in insert into table and clear Cache last item P1_C, P1_D, P1_E
    and value of item P1_A,P1_B should not be clear Cache.
    How can i Clear Cache the selected item .
    Thanks
    Manoj Kaushik
    Clear Cashe Selected Item On Press Submit Button

    hi ,
    I have one more proble,
    I have implement e-mail option in my application,i have two report first one contain List of all document and a Link In last Column in that report when i click at that link then respective Document are Add in Second Report .
    But problem is when i click Attach LinkThen page is Refresh and All Fill Value In ITEMS are clear which are on page 4.
    How can i stop to clear these item value if i attch document.
    Workspace: SKILLS IMPROVE
    User: [email protected]
    Password : desomu
    Application -42370
    Page No 4
    Thanks

  • Applications disabled after clearing caches, etc.

    My computer had begun to run slowly, so I followed advice in these pages and installed and ran an application called Cocktail: I ran the daily, weekly and monthly service operations and cleared caches and logs. Now my computer runs much better, but two applications that I have had for some time no longer work. One is an RSS news reader called PluckyX, the other is CarbonErrors. In each case the application's icon has changed.
    In the case of PluckyX, it now tries to open using Script Editor, resulting in error messages, and I cannot find any other application to open it with. PluckyX is no longer made and its creator cannot be contacted, but I downloaded another copy from VersionTracker, with the same negative result. I have not yet tried to find a new copy of CarbonErrors.
    Can anyone please suggest a solution? It is PluckyX in particular that I should like to revive.

    If you are updating Safari (or just have):
    Input Managers and other plug-ins from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed 10.4.11 and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 uses Safari 3.0.4 which is not a beta. If Safari 3.0.4 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 2 when running 10.4.11 can have repercussions, as Safari 3.0.4 uses a completely different webkit on which other applications like iChat, Mail, Dashboard widgets etc also rely.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here, among others, for causing such problems are Piclens and Pithhelmet. If you have them, trash them and go the developer's sites to see if new versions are available for Safari 3.0.4.
    In your case PluckyX and Finale are the suspects.
    You should also ensure, if you are running Tiger 10.4.11 or Leopard, that you have downloaded and installed the correct version for your Mac of Security Update 2007-009.1.1, which also deals with the Quicktime/Flash issues you may have experienced, as well as the latest Java update.

  • Safari is running very slow.  I have cleared cache, reset safari, and put in new DNS 208.67.222.220 runs worse now.

    Safari is running very slow.  I have cleared cache, reset safari, and added DNS Servers 208.67.222.222.

    Mac Mini connected directly to modem by ethernet cable.  Ipad loads same web pages much faster.  Again thanks for help.
    Hardware Information:
              Mac mini (Mid 2010)
              Mac mini - model: Macmini4,1
              1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
              2 GB RAM
    Video Information:
              NVIDIA GeForce 320M - VRAM: 256 MB
    Startup Items:
              HP Trap Monitor - Path: /Library/StartupItems/HP Trap Monitor
    System Software:
              Mac OS X 10.6.8 (10K549) - Uptime: 0 days 3:59:25
    Disk Information:
              Hitachi HTS545032B9SA02 disk0 : (298.09 GB)
                        (null) (disk0s1) <not mounted>: 200 MB
                        Macintosh HD (disk0s2) /: 297.77 GB (280.4 GB free)
              HL-DT-STDVDRW  GA32N 
    USB Information:
              Apple, Inc. Keyboard Hub
                        Apple, Inc Apple Keyboard
              HP Photosmart D110 series
              Logitech USB Receiver
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
              [failed] com.apple.suhelperd.plist
              [not loaded] org.samba.winbindd.plist
    Problem System Launch Agents:
              [failed] com.apple.Kerberos.renew.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
    Launch Agents:
              [loaded] com.hp.help.tocgenerator.plist
    User Launch Agents:
    User Login Items:
              iTunesHelper
              HP Product Research
              HPEventHandler
    3rd Party Preference Panes:
              Flash Player
    Internet Plug-ins:
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              QuickTime Plugin.plugin
              Silverlight.plugin
    User Internet Plug-ins:
    Bad Fonts:
              None
    Top Processes by CPU:
                   4%          EtreCheck
                   4%          Safari
                   3%          WindowServer
                   2%          syslogd
                   1%          fontd
                   1%          activitymonitord
                   0%          Activity Monitor
                   0%          hpdot4d
                   0%          mds
                   0%          mdworker
    Top Processes by Memory:
              221 MB             WebProcess
              85 MB              Safari
              51 MB              WindowServer
              51 MB              Mail
              37 MB              Finder
              31 MB              mds
              27 MB              coreservicesd
              23 MB              HPEventHandler
              16 MB              HPIO Trap Monitor
              16 MB              mdworker
    Virtual Memory Statistics
              619 MB             Free RAM
              755 MB             Active RAM
              233 MB             Inactive RAM
              185 MB             Wired RAM
              200 MB             Page-ins
              0 B                Page-outs

  • IE work fine but I cannot get Firefox to connect even after clearing cache, reseting Firefox and re-installing, what do I do next?

    Firefox recently tried to update, after that it no longer connects to the Internet. IE works fine. I tried clearing cache, reseting and re-installing. What do I do next to fix the problem.
    Thanks...David Puzycki

    hello david, please see [[Fix problems connecting to websites after updating Firefox]]

  • How do you reset inputText values in a dataTable?

    I'm having what must be a simple and common problem,
    but nothing I've tried has solved it. I want to be
    able to refresh (reset) the inputText field values in a dataTable.
    I have a dataTable that holds required inputText components.
    I want to have a "cancel" button which would abandon any edits
    on these components and refresh (reset) them with their backing values,
    as well as removing the last row from the table (used to enter a
    new record). Because the inputText components are required,
    I made the cancel button immediate. I don't know what code I can
    put in the button's actionListener. Right now, the displayed values
    survive the round trip to the server and back to the browser, but
    I want them to be reset to their backing values.
    Here is the page, and the backing bean of a test example:
    <%@ include file="../include/taglibs.jsp" %>
    <h:dataTable id="table" value="#{pc_Test.list}" var="x">
        <h:column>
            <h:panelGroup>
                <h:inputText id="label_value" required="true" value="#{x.value}" />
                <h:message for="label_value"/>
            </h:panelGroup>
        </h:column>
        <f:facet name="footer">
            <h:panelGroup>
                <h:commandButton id = "btnn" value="new row" actionListener="#{pc_Test.newRow}" /> 
                <f:verbatim>  </f:verbatim>
                <h:commandButton id = "btnu" value="update" actionListener="#{pc_Test.update}" />  
                <f:verbatim>  </f:verbatim>
                <h:commandButton id = "btnr" value="cancel" immediate="true" actionListener="#{pc_Test.cancel}"/>
            </h:panelGroup>
        </f:facet>
    </h:dataTable>
    <f:verbatim>Summary=</f:verbatim>
    <h:outputText value="#{pc_Test.listString}" />
    package pagecode;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.event.ActionEvent;
    public class TestPage {
        public static class Example {
            public Example(String value){this.value = value;}
            public String getValue() {return value;}
            public void setValue(String value) {this.value = value;}
            public String toString(){return getValue();}
            private String value;
        public TestPage(){
            list.add(new Example("a"));
            list.add(new Example("b"));
            list.add(new Example("c"));
        public List getList() {return list;}
        public String getListString() {return list.toString();}
        public void update(ActionEvent event){}
        public void cancel(ActionEvent event){
            if (list.size()>3)
                list.remove(list.size()-1);
        public void newRow(ActionEvent event){
            list.add(new Example(""));
        private boolean readOnly;
        private List list = new ArrayList();
    }If it makes a difference, my implementation of JSF is MyFaces. Thanks!

    bump
    I'm not happy with having javascript reseting fields in a table before submitting:
    there's a noticable screen flash, and I'd like a server-side solution anyway.
    Question: UIInput has methods getSubmittedValue and setSubmittedValue,
    so I can use these to ignore or clear submitted values when I press an
    immediate command button. This takes care of subclasses like HtmlInputText
    but not for data tables. Is there a way to manipulate all the submitted values
    of a data table?

  • Af:inputText clear cache

    Hi,
    I have a form which contains an af:inputText. User enters some data. And do some operation.
    The problem is, the inputText is holding previously entered value. i.e., caching the previously entered data.
    Can you please let me know how can we remove the cached data.
    Thanks & Regards,
    Kiran

    check my old post at Re: reset components values

  • I have a new Macbook Pro running Mavericks and safari consistently freezes. It takes several 'return/enter' presses to get to the page I requested. I have seen other comments and replies on how to fix (clear cache, clear extensions/plug-ins), to no avail.

    I have a new macbook pro running mavericks and only using Safari as my browser.  75% of my url requests are 'hung up' and freeze.  I have seen other posts and have tried to clear cache, reset safari, remove extensions, but to no avail.
    Any recommendations?

    If it works in a new user account, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • My safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    my safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    That is usually the fix but try this now.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. See if that helps.
    You can also try this - quit Safari. From the home screen - Double tap the home button and your recent apps appear the bottom. Tap and hold down on the Safari icon until it wiggles. Tap the minus sign in the upper left corner to close the app. Tap the home button twice. Restart the iPad.
    Message was edited by: Demo

  • How to clear cache & page reset when tab clicked

    Hello,
    I'm using Apex 40 and two tab level template.
    I would like to clear cache and reset pagination when 2nd level tab clicked
    Is there anyway to do that?
    Thanks.

    hlthanh wrote:
    Hello,
    I'm using Apex 40 and two tab level template.
    I would like to clear cache and reset pagination when 2nd level tab clicked
    Is there anyway to do that? Can we stick to standard APEX terminology: do you mean Parent Tab (2nd level up) or Standard Tab (2nd level down)?
    Parent Tabs allow this to be done directly using the Clear Cache property and reset pagination for this page checkbox for the Tab Target.
    For Standard Tabs, create Before Header processes on the tab target page:
    <li>Session State > Clear Cache...
    <li>Reset Pagination

  • How do you reset Safari if Reset has been changed to 'Clear History and Website Data'

    On my Macbook Pro, OS X 10.10.2, How can I reset Safari if the Reset has been replaced with 'Clear History and Website Data'

    Hi feijoada (and hi Yang ,
    The 'Form Values' file stores various autofill details - you didn't mention that file earier - did you also try moving that to the Desktop and retrying Safari to see if that was the problem? It can be found in the /Users/YourUsername/Library/Safari folder as well.

  • Safari question. Empty cache and clear History. Is there more?

    I have a slower computer with lousy internet (oh, and I can't find a link to a Safari discussion group; sorry).
    I've tried clearing the History and Empty Cache. Is there more I can do to speed it up? Do I have to delete stuff from my hard drive?
    Thanks.

    Yes. Try some of this:
    (First, if yours is an Intel Mac, check that Safari is not running in Rosetta, which is enough to slow it to a crawl. If you are running Snow Leopard, try running Safari in 32 bit not 64 bit. Control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode)
    Do you have enough RAM? Less than 1GB can cause slowness. Is your hard drive too full? Less than 15%, or 15GB, of free space can also cause slowness.
    If you use a router, does it have the latest firmware installed? Safari 5 introduced 'DNS Prefetching' (Safari looks up the addresses of links on webpages and can load those pages faster) which could strain some routers or modems producing a 'latency' in page loading. This was fixed in Safari 5.0.2, but you may see a benefit from getting a faster router or modem. You can read more about that here:
    http://support.apple.com/kb/TS3408?viewlocale=en_US
    Adding DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security:
    If you are using a single computer: Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296
    If your computer is part of a network: please refer to this page: http://www.opendns.com/start/bestpractices/#yournetwork and follow the advice given.
    (An explanation of why using Open DNS is both safe and a good idea can be read here: http://www.labnol.org/internet/tools/opendsn-what-is-opendns-why-required-2/2587 /
    Wikipedia also has an interesting article about Open DNS:
    http://en.wikipedia.org/wiki/OpenDNS
    Whilst in System Preferences/Network you should also turn off 'IPv6' in your preference pane, as otherwise you may not get the full speed benefit (the DNS resolver will default to making SRV queries). If you want to know what IPv6 is:
    This is Apple's guidance on iPv6:
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8708.html
    Click on Apply Now and close the window.
    Restart Safari, and repair permissions.
    Also, third-party add-ons created for a previous version of Safari may cause problems:
    http://support.apple.com/kb/TS3230?viewlocale=en_US
    If that didn't do it, then try this as well:
    Empty Safari's cache (from the Safari menu), then close Safari.
    Go to Home/Library/Safari and delete the following files:
    form values
    download.plist
    Then go to Home/Library/Preferences and delete
    com.apple.Safari.plist
    Repair permissions (in Disk Utility).
    Start up Safari again, and things should have improved.
    More useful information here:
    http://guides.macrumors.com/SpeedupSafari

Maybe you are looking for

  • My iPhone 4 (iOS 4.3.5) can't play my protected AAC  Audio files

    When i try playing an older song i have purchased in iTunes, of the "protected AAC audio file" type, my iPhone just skips it. And this is on both my new acount and my old acount. I made two playlist to test this issue, and the older "protected" files

  • Acrobat standard x avi

    Hi everyone.  We just updated our office package to 2010 and guess what, Standard 9 no longer works with office!  Great. So we need to upgrade to X to fix this problem but... We do not want Acrobat to convert AVIs to SWF when they are embedded into a

  • MSOIDSVC.EXE - a LOOOOT of errors in non-internet environment

    Hi, everybody! We've Office 2013 installed in a network with no connection to Inet. Almost on all computers with Office 2013 we've one and the same error from source MSOIDSVC.EXE EventID 0. The body of an error is (may be not exact, this is translati

  • Migrating solaris 10 to larger hard disk

    Hi all, I not sure if the word "migrating" should be used. Here is the case, we have a blade server which only have 2 local slot for hdd which is already occupied. The hdd is mirrored using hardware raid. Recently we encountered insufficient disk spa

  • Word compatibility

    I just received my spring syllabus for my history class. My professor said we would submit papers online. She also said to use ms word. Am i gonna have to buy ms office or is pages gonna pull me through.