Is it possible to cancel the DisclosureEvent on the server?

Hi guys,.
I work at the request of the ADF (ADF BC, ADF Rich Faces battery).
I have a requirement I need to check some things on the server when the user clicks on another tab, and according to the results of letting it go to the selected tab or to make him stay on the current.
I tried to do inside the listener of disclosure on the current tab with the definition of the disclosed attributes:

_contractsTab.setDisclosed (false); +
_mainTab.setDisclosed (true); +

but it does not work.
After that, I tried inside the listener of the disclosure on the tab where he was trying to go, but that does not work either.
I know that I can cancel the event on the client side, but at that moment there I still haven't the information upon which it depends, if it will be able to go to the other tab.

What would it be good way to do this?

Check out this example based on your use cases:
If you enter ' not in the inputText in the tab1, it would NOT disclose you to the other tab.
If you enter a different value, it will allow.

Sample.JSPX:



  
  
    
      
        
          
            
          
          
        
      
    
  

SampleBean.java:

package com.samples.view;

import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
import oracle.adf.view.rich.context.AdfFacesContext;

import org.apache.myfaces.trinidad.event.DisclosureEvent;

public class SampleBean {
    private RichInputText myInputText;
    private RichShowDetailItem mainTab;
    private RichShowDetailItem contractsTab;
    private RichPanelTabbed panelTab;

    public SampleBean() {
    }

    public void setMyInputText(RichInputText myInputText) {
        this.myInputText = myInputText;
    }

    public RichInputText getMyInputText() {
        return myInputText;
    }

    public void onContractsTabDiscloseListener(DisclosureEvent disclosureEvent) {
        if (this.myInputText != null && this.myInputText.getValue() != null) {
            String value = (String)this.myInputText.getValue();
            if ("N".equals(value)) {
                this.mainTab.setDisclosed(true);
                this.contractsTab.setDisabled(false);
                AdfFacesContext adfFacesContext =
                    AdfFacesContext.getCurrentInstance();
                adfFacesContext.addPartialTarget(this.panelTab);
            }
        }
    }

    public void setMainTab(RichShowDetailItem mainTab) {
        this.mainTab = mainTab;
    }

    public RichShowDetailItem getMainTab() {
        return mainTab;
    }

    public void setContractsTab(RichShowDetailItem contractsTab) {
        this.contractsTab = contractsTab;
    }

    public RichShowDetailItem getContractsTab() {
        return contractsTab;
    }

    public void setPanelTab(RichPanelTabbed panelTab) {
        this.panelTab = panelTab;
    }

    public RichPanelTabbed getPanelTab() {
        return panelTab;
    }
}

Thank you
Nini

Tags: Java

Similar Questions

  • is it possible to cancel the functionality of firefox troubleshooting information reset?

    Recently, I started to have an ad for firefox on android, each time I start firefox and looked for a way to stop it. The reset firefox button seamed like a good idea, but I'd prefer restore firefox how I got it. Is it possible to cancel the reset function?

    Too bad I discovered how ;-)

  • Is it possible to cancel the security update?

    I did a safety day yesterday which is updated live to update the pages not feasible, and it takes a long time to load pages. Live update is necessary for updates of financial information. It's really bad for me.

    Is it possible to cancel the update and how?

    I think there is no way to return.

    But are you sure that the security update is the cause of your problem?

    What browser do you use?

  • Anyone know if its possible to cancel the process of "encryption" for Bitlocker when he started?

    I have enabled Bitlocker to my USB on Windows 7 and just after the encryption process initial started I realized I forgot to format the USB stick to NTFS (it is formatted in FAT32). So, I suspended the encryption and removed the USB to the computer. The window of "encryption" Bitlocker disappeared and thought, cool, it stopped. No, it's never easy I guess. I plug in the USB flash drive in and the 'encryption' POPs back once again, with only one button "pause." No button 'Cancel' for some reason any. I guess that Microsoft don't stir the meninges it long enough to think that anyone would ever want to cancel the encryption process, once it has started. The only good news in this story, it's that my USB was only 4 GB in size so I waited. If I had bought a much larger capacity USB key I would be very angry right now.

    So my question, is it possible to cancel the encryption Bitlocker process once it has started? And if not, Microsoft, why not? Please put this on your to-do-list. Thank you. System configuration: Winndows 7 RTM, Gigabyte GA-EP45-UD3L motherboard, Intel Pentium Dual - Core E6300 Wolfdale 2.8 GHz, 4 GB of memory PC-1066 DDR2 Patriot Viper, 500 GB Western Digital hard drive, GeForce 8800GT Videocard

    Hi BradleyA,

    You will not be able to cancel the encryption, as is a built-in feature.

    You can suspend or resume the encryption.

    1 open the Bit locker Drive Encryption by clicking the Start button, click Control Panel, clicking Security, and then click Bit locker Drive Encryption.

    2. do one of the following:

    ·         To temporarily suspend Bit Locker, click suspend Protection, and then click Yes.

    ·         To Disable Bit Locker and decrypt the drive, click Disable Bit Locker, and then click drive to decrypt.

    For more information, please click on the following link:

    http://Windows.Microsoft.com/en-us/Windows7/help-protect-your-files-using-BitLocker-Drive-encryption

    With regard to:

    Swati K - Microsoft support technician

    Visit our Microsoft answers feedback Forum and let us know what you think

  • Is it possible to cancel the last version upgrade of Windows - Photoshop -

    I installed the upgrade to Photoshop. Not only is so different that it took me a lot of time to do even to resemble the previous version that I used and loved the Raw Converter of my camera (Pentax KS-1) is not usable. He brings just corrupted data. I messed with graphics acceleration but I'm limited kind of there with an Intel/Graphic chip. I don't have a dedicated card. I tried to revert to a previous version through CC but not all were available.  I also completely uninstalled Photoshop and downloaded again, in the hope that it would be upgrading pre version. It wasn't. Is it possible to cancel this upgrade? If I knew it was still in beta, I would not have applied. Thank you!

    Thanks for the update.

    Go to the menu edit in Photoshop > preferences > Camera Raw > uncheck the option 'use the graphics processor' down > restart Photoshop > trying to open any image in Camera Raw again and that should help.

  • Is it possible to start the server managed through the weblogic console

    Is it possible to start the Manager of servers such as soa_server1 and oim_server1 of weblogic console? Please I need your help

    http://docs.Oracle.com/CD/E23943_01/apirefs.1111/e13952/TaskHelp/startstop/StartManagedServersFromTheAdministrationConsole.html
    http://onlineappsdba.com/index.php/2010/04/10/WebLogic-error-starting-managed-server-from-console-node-manager-associated-with-this-machine-is-not-reachable/

    -nayan

  • is it possible to cancel the windows error checking after he was executed

    Windows reported an error with an external hard drive.  In a first point to solve this problem the disc has been selected in working and error checking station in selected properties and tools. This was the value automatically fix system errors file and Scan for and attempt recovery of bad sectors.

    The analysis generated an error message that the drive had not been fixed. After the scan, it produced two audit records of fixed size disk files that are of no use. It is possibel to cancel this operation, as well as a more suitable tool for the recovery of lost data, as Testdisk can be used.

    Once you write on a disc to try to repair or recover files that you have overwrittten areas of training that would have contained data recovery.  There is no reverse, delete or Cancel to a disk error, control of process if you allow changes to be written to the disk.  So you may well and truly out of luck.

  • It is not possible to cancel the account

    I want to cancel my account, but Adobe does not give me this option. Who can help me?

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • DROID: Is it possible to cancel the timeout of the screen when loading?

    I wish I could use my droid with the maps in the car, but unless I'm in navigation, the screen times out and empties.  Is there a way to set this based on the question of whether you charge the phone or not?  I use a power cable in the car.  If the car dock has a magnet to make the screen stays on, that may need to be placed where?

    Tom

    Settings-> Applications-> development-> stay awake

  • Is it possible to cancel the generation of pic files?

    Hi all

    Quick question: my plans are all compilations of various videos from many sources within our Organization. Very very rarely ever use native audio clips. Rarely I hear that it has been several years. There is music and voice-over.

    The problem is: my projects will have hours of original material (that I've got a now 6 hours from your HD source files), which are loaded and I use very well in my calendar, but point being generated files are huge and a lot of time. Since I use the audio, is there a way to disable the generation of the PIC file?

    On the other hand - if I delete the media cache files, creating simply will rebuild them once again?

    Thank you much in advance,

    Jonathan

    (BTW - CS4)

    # With base band material, you can try to capture the only and perhaps, video that will bypass the generation of the pic file. Try it and you will know.

  • Is it possible to cancel a firmware update crashed?

    Well well... what to do now? I ran the last update closed and Alto ", hung in a closed loop, and finally after an hour, I canceled and now my great EA4500 running is now a costly plastic paperweight. Is it possible to cancel the "damaged" eprom/firmware upgrade.

    I'm electronic able and willing to tear off the cover and replace the eprom, if possible, as we did in the old days, old, replacement of the bios!

    The update was over a wired or wireless?

    Always a FW update via a wired LAN connection.

    You could do a search on the support site for 30-30-30 for reset see if this can help you to recover or to a page where you can recharge the FW load.

    Future use:

    Safely update FW, I recommend doing the following: download the FW from the first support site.
    1 save the router config to the file first using IE or FF with all modules disabled security.
    2 factory reset the router with all devices disconnected or turned off accept for 1 Wired PC.
    3 reload or update the FW using IE or FF. Just download the FW file to your wired local LAN PC.
    4 factory reset the router and then set up from zero all first and test with loading saved configuration from the file. Check if problems are solved before loading the saved configuration file. Sometimes, you need to set up from scratch with the loading of the configuration file saved. Just safer that way.

  • Cancel the closing of the program?

    Hello

    I have an application that is not resealable until the user has pressed the button. Is it possible to cancel the closure of this program (i.e. in the onExit() function)?

    I can click on the 'back' button so I return to the main screen. I want to disable it... is - it possible?

    Thank you

    You must override onClose() as simon suggested.

    Don't forget to return false by the method.

            public boolean onClose()
            {
                return false;
            }
    

    Concerning

    Bika

  • How do I cancel the local connection to the ACS

    Hello

    is it possible to cancel the access of local access to the ACS login page

    http://127.0.0.1:2002 /.

    I want to say for now that I click on the file ACS Admin.html automatically giving access to my ACS with promting to login. is it possible to cancel the same.

    Pls go to acs---> control administrator---> strategy session---> allow automatic local connection---> uncheck--> Submit

    Kind regards

    ~ JG

    Note the useful messages

  • How to cancel the limit rownum < 1234...

    Hello

    I connect via the ODBC connection pool to the Vertica (HP) database.

    Vertica SQL does not work with the operator "rownum <...» ».

    But OBIEE generate instructions SQL DB, according to ResultRowLimit definition.

    For example:

    Select D1.c1 as D1.c2 as D1.c3 as D1.c4 as c1 c2 c3 c4

    (separate select 0 as c1,

    D1. C1 C2

    D1. C2 as c3,

    D1. C3 as c4

    Of

    (select T380477. PERIOD_NAME C1,

    T380477. PERIOD_NUM C2,

    T380477. PERIOD_ID as c3

    of XXBI_DIM_GL_PERIODS T380477

    ) D1

    order of c4, c3) D1

    where rownum < = 1000000000

    So the question is: is it possible to cancel the rownum limit?

    Thank you

    Ark

    Have you tried to disable ROWNUM_SUPPORTED in the features of the physical layer data base? Implementation of database objects and the Pools of connections - 11 g Release 1 (11.1.1)

  • Cancel the PIP without the button "Cancel".

    I'm open to suggestion here.   I'm trying to change between two sources which are not synchronized, time sinks, to the other.   The solution I came with is to overlay one source to another using PIP, match the shot, and then make the necessary changes.   However, once I made the game, so I have to resize the source, so they all look like a single video.   Is it possible to cancel the PIP effect on an individual clip without having to do it manually?  I tried to delete the video effect - that didn't work all

    Buddycat

    Please come back on what I wrote... This will make two small adjusts scale and Position if you opt for the scale and move the position of the PiP.

    Start by

    Video on Video track 1, to stay as it is.

    Video on Video 2 track, to be your PiP (picture in picture).

    Highlight video 2 video tracks, go to its request under the relaxed applied effects tab panel leave the

    Panel range/Motion applied effects extended open.

    Debrief of the two values, 360.0 (side to side) and 240,0 position (up and down).

    And you know that you start at 100% scale.

    Drag the PiP 40% LR preset in the video 2 video tracks to get

    Review the scale values and the Position in the expanded Motion Panel.

    The two Position values have changed and are related to the current position of the PiP. You can move the PiP

    around as much as you want, and whenever the Position of values will change accordingly. If you keep the 40%

    Dimensioning of the screening, the scale will remain 40 whenever you move the PiP.

    When you are ready to remove the PiP effect, turn to the Panel movement expanded and simply type in the 'before '.

    Position (360.0, 240,0) values and scale of 100. You should not run in any jumps side effects.

    What is the problem with that? There is no toggle on and off a preset PiP I've ever met.

    RTA

Maybe you are looking for