Using odc:tabbedPanel   : event handling ?

Hi ,
I am using <odc:tabbedPanel> for tabs , need some help on event handling when we click on any tab by using <odc:tabbedPanel>
When tan is getting loaded want to do some server side coding , Any body has any idea on this ?
Thanks,
....

Hi BalusC,
Little more details
I am using <odc:tabbedPanel> it has two tabs(Select tools , Change order ) , The first tab contains list of check boxes(<h:selectBooleanCheckbox ) , the second tab contains list box(<h:selectOneListbox) , it has all checked values from the first tab.
If I select/deselcet any checkbox from the first tab with out submitting , the same values needs to be shared to the second tab . based on this user can save/cancel his preferences..
So I need to do some action when Iclick on second tab , I don't see any action/valuchanged event on <odc:bfPanel> .
Can you please let me know how this can be achieved.
Thanks in advance...

Similar Messages

  • STRUTS and UIX: How to use getCustomMethod in event handler

    I am having app module method exposed to a client as my custom method that does something. Then I have a data page (UIX) with a submit button that triggers event handler:
    public void onMyEvent(DataActionContext ctx) {
        HttpServletRequest request = ctx.getHttpServletRequest();
        HttpSession session = request.getSession();
        JUCtrlActionBinding method = ctx.getCustomMethod();
        if (method == null) System.out.println("method is null!!!!!!!!!!!");for some reason my method handle is null WHY???
    this seems to work when I call my method from findForward() though.

    If you use ADF BC, you can override the method create(AttributeList) in the Entity Object implementation class (EmployeesImpl.java).
    Use: Menu --> Tools --> Override Methods --> create
    In the overridden create method you can assign the next value from a DB sequence (e.g. EMP_SEQ) to the ID attribute:
    protected void create(AttributeList nameValuePair) {
    // Super
    super.create(nameValuePair);
    // Id
    SequenceImpl s = new SequenceImpl("EMP_SEQ", getDBTransaction());
    setEmployeeId(s.getSequenceNumber());
    }

  • How to use multiple Screen Event Handling on JavaFX

    Hi,
    Its appreciate , if any one assist me on Event Handling on JavaFX with multiple scene with single stage.
    Thanks
    Biswajit

    I think is this usefull for you. . .
    http://forums.sun.com/thread.jspa?threadID=5359128&tstart=30
    Regards,
    Rams.

  • Use movie clip event handler function, but not via an event

    Let's say I have the following code:
    var initObj = new Object();
    initObj.mood = "happy";
    mc = attachMovie("mcBox","instBox",100,initObj);
    mc.onPress = boxPress;
    function boxPress() {
    trace("Box mood: " + this.mood);
    Now, let's say there are times that I want to call boxPress()
    other than when the onPress event happens. In other words, I want
    to call boxPress() for a movie clip via my AS code, but not when an
    onPress event has occurred for that movie clip. Is this possible?
    Or is it possible to simulate or force an onPress event for a movie
    clip so that the handler function gets called for that movie clip?

    addEventListener only works with components in ActionScript 2
    "workingonasite" <[email protected]> wrote
    in message
    news:f1vu8r$92i$[email protected]..
    > So I am trying to get my head around event Listeners.
    When I use this
    > example
    > on a button it works fine:
    >
    > but when I add the same listener to a movie Clip on the
    stage with an
    > instance
    > name of "box", it does not work. Is there something
    basic I am missing?
    >
    >
    >
    > var buttonListener:Object = new Object();
    > buttonListener.click = function(eventObj:Object) {
    > trace("click");
    > };
    > mybutton.addEventListener("click", buttonListener);
    >

  • Where used list for event handler in fpm applications

    Hi,
    in one of fpm applications, fpm event been raised in one of the methods, i want to see in which components these fpm events been handled, as i can see there are multiple compoenents being configured in fpm application.
    Please suggest !!

    Hi,
    There is no tool to find that out. Normally i analyze manually starting from the application point of view, go through the involved components and their process_event method.
    You could try in se80 to search for a string, supplying the event name.

  • TFS work item store is not connecting in production server using server side event handler code

    Server side plugin code to connect to work item store
    tfs = new TfsTeamProjectCollection(new Uri(tfsUri));
    store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
    I used the above code and accessed work item store in my TFS DEV server without username and password. But the same plugin code is not working for the TFS Production server.
    Exception:
    Account name:
    domain\TFSService Detailed Message: : TF30063: You are
    not authorized to access http://localhost:8080/tfs/xx. Exception Message: TF30063: You are not
    authorized to access http://localhost:8080/tfs/xx
    Please guide

    Hi divya,
    From the error message, you might not have the permissions to get the work item store in TFS production server. You can check the permissions on your production server by using
    tfssecurity command in VS command line.
    Please execute tfssecurity /imx “domain\username” /collection:url, for more information about tfssecurity /imx, please refer to:
    http://msdn.microsoft.com/en-us/library/ms400806.aspx 
    If you have the permission, then you can also clean team foundation cache and try again.
    Best regards,

  • Correct way to use an event handler

    The following is dynamically adds a series of buttons and a label to each button. The problem is that the event handler fires twice for each button, and the last button never gets processed at all.
    Should I be using a different event handler than ResizeEvent.RESIZE? How do I add the label to the last button in the sequence?
    Thank you.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
        <mx:Script>
      <![CDATA[
          import mx.events.ResizeEvent;
    private var button:Button2;
    public var numButtons:Number=5;
    private var counter:Number=0;
    public function init():void{
        for(var i:int=0; i<numButtons;i++){
            button=new Button2;
            hbox.addChild(button)
            button.addEventListener(ResizeEvent.RESIZE, handleButtonAdded)
    private function handleButtonAdded(e:ResizeEvent):void{
        counter++
        trace(e.target)
        e.target.label= String(counter);
        button.removeEventListener(ResizeEvent.RESIZE, handleButtonAdded)
      ]]>
    </mx:Script>
    <mx:HBox id="hbox"  horizontalGap="0"/>
    </mx:Application>
    Here's the button: Button2.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" >
    <mx:Script>
        <![CDATA[
        public function init():void{
            this.width=100;
        ]]>
    </mx:Script>
    </mx:Button>

    Hmm , what are you trying to do ?  There are a few questionable things happening.  Your event-handler is named "handleButtonAdded" but it takes a ResizeEvent ? Do you mean to trigger an event based on when the button was added to the stage , or parent such as FlexEvent.ADDED or when the creation is complete ,  FlexEvent.CREATION_COMPLETE ?
       The second thing is your "button" variable.  It is declared outside of the loop in the "init" function.  Meaning , when that loop is done and even during execution , it will point to the last button created.  So all the buttons have listeners , meaning when one button fires off a ResizeEvent , it will remove the listener for whatever your variable "button" is pointing to.  This guarantees (well , maybe not) the behaviour that your last button will NOT have a listener , therefore it will not fire.
      By the way , you can set the label and the size of the button when you declare them. You don't have to subclass and use listeners.

  • OIM 11.1.1.5.0 - Pre process event handler

    Hi everyone, I'm trying to configure a preprocess event handler to automate email and user login when I click on "create user".
    I mean when I want to create a new user, I just want to fill the first name, the last name, the organization and the type and this preprocess will fill automatically the email and the user login fields. I don't know if it's possible or not with an event handler ?
    Thanks
    Thibault

    If you want this event handler only for manual user creation using UI then you can go with pre-process event handler. The advantage you get is, no need of refereshment. once user created email and user login field will be visible. But in case of post process you have to refresh it manaually. Yes, you have to use post process event handler if the same field you want to populate on Trusted recon as well. Beacause, Pre- process doesn't work with Trusted recon.
    Hope above will help you to decide for pre or post to use.
    Now, for registering plugin. Don't put jar in the zip, you have to place .class in case of event handler. jar we use for scheduled task. place your class file like below and zip
    lib/*package structure folder*/EmailLoginAuto.class
    ie lib/com/test/eventhandler/EmailLoginAuto.class
    for importing eventhandler.xml put it anywhere in your directory structure
    ex: /tmp/db/eventhandler.xml
    and update the from_location as /tmp in weblogic.properties
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PostProcess event handler for trusted recon -11G Release2

    Hi all,
    I am disabling a user in post process eventhandler bulkExecution method. When the event handler is triggered does the user is already created at OIM? Do I modify the already created user? Or all changes done to any user during the orchestration process are commited at finalization... Can anyone tell me how things goes at the db side?
    Thanks in advance
    BR
    Aliye

    Post process event handler is fired after the user is created in database. You can verify by retrieving the usr_key attribute of user profile which is generated in database. So if you are disabling a user using post-process event handler, it means user is already created in database. As far as orchestration framework is concerned user is created during orchestration period and all event handlers and access policies are evaluated after that.
    regards,
    GP

  • 2 Displayable objects, 1 event handler object

    Hi there,
    I'm working on an application using J2ME and the MIDP profile. I was wondering, is it possible to use 1 event handler object for 2 Displayable objects? Lets say I have a list on one screen and a form on another, can I use 1 event handler object to handle the events for these two elements? I am implementing my event handler in another class, and I am trying to use the same event handler for all my screens, but it does not seem to be functioning. Any hints?
    Also, is it advisable to implement the event handler in a separate class for a J2ME application? Does it really make any difference design-wise and efficiency-wise?
    I would appreciate the insight..
    Thanks

    ...I would start with adding debug messages in commandAction and in nextScreen:
    // debug messages are within System.out.println, do not forget to remove after fix
      public void commandAction(Command s, Displayable x) {
        System.out.println("command: [" + s.getLabel() + "] screen: [" + x.getTitle() + "]" );
        // ...here starts your code...
      public void nextScreen(int x) {
        System.out.println("index: [" + x + "]);
        System.out.println("screen[0] is not null: [" + (screen[0] != null) + "]" );
        System.out.println("screen[0] title: [" + (screen[0].getTitle()) + "]" );
        System.out.println("screen[1] is not null: [" + (screen[1] != null) + "]" );
        System.out.println("screen[1] title: [" + (screen[1].getTitle()) + "]" );
        // ...here starts your code...
    {code}
    then retry run and check messages shown in WTK console...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Migration from Serial polling to Serial queue with event handler

    Hi, I am trying to migrate from classical serial polling communications to serial queue with "event handler" for the buttons pressed by the user. I have placed four while loops, one for the event handler, a second one for serial reading, a third one for serial writing (depending on what button was pressed) and the last one for processing what was read from the serial reading while loop, via a queue.
    My attached device reads the signals from 8 sensor ( 4 temperature and another 4 temperature plus humidity in the same sensor ) and send them via serial to Lavbiew.
    First of all, only once just after running the LV program, I must turn on my attached device with an ON command plus a carriage return after that the device will respond with the number of sensors plugged to it, disabling the corresponding buttons in the front panel. Then labview must wait until I pressed Acquire Button (event handler) and send a CF command plus what sensors to acquire plus a carriage return, then the device will respond continuously to labview with the sensor readings until I press the stop button (event handler), there is also another button to exit the program, also with event handler.
    I am having problems using the event handler and the queues because I am new using these structures, I have looked at  the LV examples but there is nothing concrete on using serial with event handler and queue.
    Take a look at my VI and you will soon notice what kind of problems I am having, any suggestions will welcome.
    Thank's in advance.
    Regards.
    Attachments:
    serial queue.zip ‏76 KB

    Hi Luisete,
    Maybe the problem arise because you are En- and DeQueue in parallel. You do a lot of things in parallel, that is nice if you are sure that one loop doesn't have to wait for another loop. Make sure you don't dequeue before enqueue.
    Hope this helps
    I never knew that the standard error cluster output could be wired directly to the loop control of a while loop.
    First time I see this

  • Rather complicated (possibly!) threading/event handling problem...

    OK, so here's a good question to ask for my first post to this site!
    My current "project" is a GUI applet that does real-time interactions on a set of objects and user input. I'm using double buffering, event handling (from the keyboard) and multiple threads to handle the categories of "user input and graphics" and "world state updating." Here is a rough overview of how the program is layed out:
    // keyboard input status class
    class Keyboard extends KeyListener {
       static int[] code = new int[7];            // contains keycodes of interesting keys
       static boolean[] status = new boolean[7];     // status of keys (true=pressed)
       static boolean getStatus(int key) {
          return status[key];
       void keyPressed(KeyEvent e) {
          for(int i = 6; i >= 0; i--)
             if(code[i] == e.code)
                status[i] = true;
       void keyReleased(KeyEvent e) {
          for(int i = 6; i >= 0; i--)
             if(code[i] == e.code)
                status[i] = false;
    // main program applet
    class Program extends Applet implements Runnable {
       static Thread thread;      // main thread of applet
       static Image buffer;         // double buffer for offscreen rendering
       static boolean running;  // flag to indicate status of applet
       void init() {
          buffer = createImage(500, 500);
          // other initializations
       void destroy() {
          // other disposes
       void start() {
          running = true;
          thread = new Thread(this);
          thread.start();
          addKeyListener(new Keyboard());   // begin receiving input
       void stop() {
          running = false;
          if(thread != Thread.currentThread())
             thread.join();    // wait for thread to die before continuing
       void run() {
          double paintTimer = 0;   // timer to suspend painting to buffer until necessary
          double dt = 0;       // difference in time between loops
          while(running) {
             // update timing stuff (dt and paintTimer)
             // update world status
             paintTimer -= dt;      // to decrement painting timer
             if(paintTimer <= 0) {
                paintTimer = 1.0 / fps;    // reset paint timer based on current fps setting
                synchronized(syncObject) {
                   // paint world to buffer
                   repaint();
             Thread.yield();  // to yield time to painting and user input thread
       // this method is only called by the internal thread within the applet
       //  that is responsible for painting and event handling
       void paint(Graphics g) {
          // make sure painting to screen won't conflict with thread that's drawing on buffer!
          synchronized(syncObject) {
             g.drawImage(buffer, 0, 0, null);  // do double buffering...paint buffer to screen
    }So the end result is that it works fine some of the time, but every once in awhile I'll get these strange results where it'll seem as if the internal thread that handles graphics and input will get bogged down or stop responding normally, even with the Thread.yield() call from the main applet thread. I'll get results where the world will continue to be updated correctly, but the user input and onscreen rendering freeze in a particular state for a matter of seconds, and then it seems to regain control for a brief few milliseconds (hence I'll get a quick screen refresh and keyboard state change), and then it'll freeze again. Once this starts happening somewhere in the middle of execution, it continues to happen throughout that runtime session. Sometimes when I force-close the appletviewer I'll get weird native runtime exceptions that seem to occur within Sun's keyboard input manager.
    Almost always it'll run perfectly for many minutes, and then all of a sudden it'll start to freeze up. Every once in awhile it freezes almost immediately after startup. I've run some testcases on it and am pretty confident it has nothing to do with the synchronization or the fact that I create a new applet thread every time the applet is restarted dynamically. Is it something happening within the event thread of the applet that I'm not aware of? Or is it something wrong with the flow of my code? Thanks for any input or help you can give! I'll be happy to send more details if needed.
    Zach

    right before your repaint, putSystem.out.println("Is EDT? "+SwingUtilities.isEventDispatcherThread());if its printing false, then you need to do SwingUtilities.invokeLater( ... );
    and put GUI updating code in the invoke later.

  • Convert onEnterFrame Event Handler  AS2 code into AS3

    My code of AS2 is given below. I do not know what event handler type is used and which event handler is used in AS3.
    onEnterFrame = function(){

    this.addEventListener(Event.ENTER_FRAME,onEf);
    // "this" references the movie itself, you can also use "stage" or the instance name of an object on the stage
    // look up addEventListener in the online help. This method takes two arguments, the event that you want to "listen" for and the name of the function to execute when the event occurs.
    // the function that will be called when the event occurs. It takes one argument that corresponds with the first argument of the addEventListener method.
    function onEf(event:Event):void {

  • Event handling for textfields

    I would like to make ONE event-handler for users who
    - presses Return/Enter from a field or
    - uses the mouse to jump to another field or
    - uses the tab-key to jump to another field.
    Can this be handled by using only one event-handler, ex. focusLost ?
    I appreciate your answer.
    Have a nice day.

    I used a single FocusListener with 3 different TextFields to select all the text in a TextField whenever the TextField gained focus, plus updated the other 2 TextFields based on the contents of the third when the third lost focus. Is that like what you are looking for?

  • Passing an array into an Event Handler?

    An inventory project I am working on is requiring me to create JButtons (First, Last, Next, and Previous) which are supposed to cycle through and display (in JTextFields) the contents of an array of objects. I can make the buttons work if I do this:
    numberfield.setText("This works when used in the event handler");
    but it does not work when I try to do this:
    numberfield.setText(dirtbikes[0].getNumber());
    When I try this, I get this error:
    InventoryGUITest2:java:124:cannot find symbol
    symbol : variable dirtbikes
    location : class InventoryGUITest2
    numberfield.setText(dirtbikes[0].getNumber());
    ^
    I'm not sure if what I am trying to do is possible, but any guidance would be greatly appreciated. I have included the code for the main class below. Thank you for your time.
    import javax.swing.*; // imports all javax.swing classes
    import java.awt.event.*; // imports event handling components
    import java.awt.*;
    public class InventoryGUITest2 extends JFrame implements ActionListener // class tests an instance of class Inventory using a GUI to display data
         JTextArea textArea;
         JLabel numberlabel, namelabel, speedlabel, pricelabel, stocklabel, restocklabel, valuelabel, totalvaluelabel; // creates JLabels
         JTextField numberfield, namefield, speedfield, pricefield, stockfield, restockfield, valuefield, totalvaluefield; // creates JTextFields
         JButton firstbutton, lastbutton, previousbutton, nextbutton; // creates JButtons for navigation
         public static void main( String args[] ) // begins Java execution
              Dirtbikes dirtbikes[]; // declares array variable
            dirtbikes = new Dirtbikes[4]; //declares array with length of 4
            // populate array
              dirtbikes[0] = new Dirtbikes( "11", "49cc Dirt Bike", 4, 199.99, "25 mph"  );
              dirtbikes[1] = new Dirtbikes( "12", "90cc MotoX Bike", 7, 1299.99, "45+ mph" );
              dirtbikes[2] = new Dirtbikes( "13", "70cc Pit Bike", 3, 359.99, "35+ mph" );
              dirtbikes[3] = new Dirtbikes( "14", "50cc Street Rocket", 5, 879.99, "55+ mph" );
            // end populate array
            new InventoryGUITest2(dirtbikes); // creates new instance of itself
         } // end main method
        // constructor creates and runs GUI
         public InventoryGUITest2(Dirtbikes[] dirtbikes)
            this.setSize(500,300);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.setTitle("Dirt Bike Inventory");
              JPanel panel1 = new JPanel(); // creates panel to imbed buttons into bottom of frame
              firstbutton = new JButton("First");
              firstbutton.addActionListener(this);
              panel1.add(firstbutton);
            lastbutton = new JButton("Last");
            lastbutton.addActionListener(this);
            panel1.add(lastbutton);
            previousbutton = new JButton("Previous");
            previousbutton.addActionListener(this);
            panel1.add(previousbutton);
            nextbutton = new JButton("Next");
            nextbutton.addActionListener(this);
            panel1.add(nextbutton);
            this.add(panel1, BorderLayout.SOUTH);
            JPanel panel2 = new JPanel(); // creates panel to imbed labels and fields into frame
            panel2.setLayout(new FlowLayout(FlowLayout.RIGHT));
            numberlabel = new JLabel("Item Number:                                      ");
            numberfield = new JTextField(25);
            numberfield.setEditable(false);
            panel2.add(numberlabel);
            panel2.add(numberfield);
            namelabel = new JLabel("Item Name:                                          ");
            namefield = new JTextField(25);
            namefield.setEditable(false);
            panel2.add(namelabel);
            panel2.add(namefield);
            speedlabel = new JLabel("Top Speed:                                           ");
            speedfield = new JTextField(25);
            speedfield.setEditable(false);
            panel2.add(speedlabel);
            panel2.add(speedfield);
            pricelabel = new JLabel("Price:                                                     ");
            pricefield = new JTextField(25);
            pricefield.setEditable(false);
            panel2.add(pricelabel);
            panel2.add(pricefield);
            stocklabel = new JLabel("# in Stock:                                            ");
            stockfield = new JTextField(25);
            stockfield.setEditable(false);
            panel2.add(stocklabel);
            panel2.add(stockfield);
            restocklabel = new JLabel("Restock Fee (5%):                              ");
            restockfield = new JTextField(25);
            restockfield.setEditable(false);
            panel2.add(restocklabel);
            panel2.add(restockfield);
            valuelabel = new JLabel("Total Value with fee:                          ");
            valuefield = new JTextField(25);
            valuefield.setEditable(false);
            panel2.add(valuelabel);
            panel2.add(valuefield);
            totalvaluelabel = new JLabel("Total Value with fee (for all items):");
            totalvaluefield = new JTextField(25);
            totalvaluefield.setEditable(false);
            panel2.add(totalvaluelabel);
            panel2.add(totalvaluefield);
            this.add(panel2);
            this.setVisible(true); // makes frame visible
              this.setLocationRelativeTo(null); // centers window on screen
         } // end constructor
                   public void actionPerformed(ActionEvent e)
                        if (e.getSource() == firstbutton)
                             numberfield.setText(dirtbikes[0].getNumber());
                   }

    bwilde wrote:
    I appreciate the help as everything I thought I had learned about Java has seemed to fall by the wayside in the shadow of making Swing/AWT work properly.You're not the first person to write this, or code like this in the forum. But realize it isn't true. GUI coding isn't a special case -- it's just another example of object-oriented programming. What's really happening is that the training wheels have come off: Writing a simple Swing example is often the first time one is writing anything that is not trivial.

Maybe you are looking for

  • I am unable to log out of my old creative cloud.

    I have Windows 8 and started school with the creative cloud trial version and now I activated my Adobe Cloud membership I can not log out of my old expired creative cloud. I need to know how I can log out of my old account? The log out button isn't a

  • Same Number Range for OTHR and DLFC

    Hi All, I want to know whether we can mantain different number range for OTHR and DLFC transaction Type for same Series Group. i.e for Returns Vendor Delivery Excise Invoice(MM side-OTHR) and Outgoing Excise Invoice(Sales Side-DLFC). Pls guide me.. W

  • Help with removing pics/videos from my iphone?

    First of all hello I have an iphone 3gs and after taking a few videos and pictures the other day i got my son to show me how to upload them to the pc (fine) but somewhere along syncing them on itunes i have a new folder in my photo album under Camera

  • Need faqs on ABAP HR basics

    Hi folks,           I need faqs on ABAP HR (with answers).  Could any body send me some material to attend interview on ABAP HR.Please i want with ansers as i amvery new to ABAP HR.             Thanks,            Shyam.

  • Scheduling of BI reports

    Dear Gurus, I want to do scheduling of BI reports. So after executing query on portal, I clicked on "Broadcast to recipient ", the Broadcasting Wizard has opened then i followed below steps 1. Step 1 of 5: Determine Basic Settings -- PDF 2. Step 1 of