FireActionEvent or ActionEvent??

Hello Everyone,
Now I am up with another silly query :D
Its like i've placed a jcombobox in a jpanel in the container which is havin one jtabbedpane on it. Now, originally jtabbedpane displays just a chart which is placed on a chartpanel but, once the options are picked from the combobox further tabs are to be added on it. (There would be 10-15 options on the JCombobox)
Now, the problem is I added actionEvent object but it is not helping. Am i supposed to use fireActionEvent or its just some silly mistake on my part??
Thanks!!

Now, the problem is I added actionEvent object but it is not helping. Am i supposed to use fireActionEvent or its just some silly mistake on my part??added to where ?? we can not read you mind. Make some effort to give more details by posting a Self Contained, Compilable and Executable, Example Program
[SSCCE |http://mindprod.com/jgloss/sscce.html]
where the program indicate the problem you are facing, make it as short as possible ( the code) and use code tag
Regards,
Alan Mehio
London,UK

Similar Messages

  • A question about firing event, please help

    I would like to know how to fire an event in the following situation:
    public class FireAnEvent
             public static void main()
                   char c=(char)System.in.read())s;
                   String source="I'm the source";
                   if(c!="a")
                          fireActionEvent(new ActionEvent(source,1,null);
    }the above code won't work obviously, but what should i do to make it work, or is it possible to fire in this situation?
    thanks in advance;
    Message was edited by:
    fandebiao

    My personal favourite way to quickly fire custom events is through using enums in the XXXEvent class. That way checking which event was called is easy, and it's also typesafe.
    fireXXXEvent(XXXEvent.ID.MY_ID, "...");
      private List<XXXListener> listeners = new LinkedList<XXXListener>();
      private synchronized void fireXXXEvent(XXXEvent.ID eventID, String args) {
        XXXEvent event = new XXXEvent(this, eventID);
        event.setupOtherStuff(args);
        for (XXXListener l : listeners) {
          switch (eventID) {
            case MY_ID:
              l.xxxAction(event);
              break;
            case MY_OTHER_ID:
              l.xxxOtherAction(event);
              break;
            default:
              break;
      public synchronized void addXXXListener(XXXListener l) { listeners.add(l); }
      public synchronized void removeXXXListener(XXXListener l) { listeners.remove(l); }

  • What is the difference between ActionEvent and SelectionEvent?

    Technical Environment:
    Oracle jDeveloper 11.1.1.4.0
    Windows XP
    I think there is something behind ActionEvent and SelectionEvent that makes my code doesn't work.
    Here is my problem:
    I have three tables. One is a master table, contains summary of something. If I select a row on this table, the second table will show some data, based on the selected row on the first table. Yup, this is a ViewLink, and it is working perfectly. Now, I want the same thing works between the second and third table. If I select a row in second table, the third table should show some data, based on the selected row on the second table. The third table is a ViewObject with some bind parameters. I need to assign values to these parameters, which I get the value from the selected row on the second table. How can I do this?
    I have tried to use ExecuteWithParams. Select the row from second table, get the values, pass it into ExecuteWithParams Form, execute and.. it works.. I get the result on the third table. Here is the code how I do that:
    public void updateTableEvent(ActionEvent actionEvent) {
    DCIteratorBinding iter = gen.getIteratorBinding("SearchView3Iterator");
    Row rw = iter.getCurrentRow();
    oracle.jbo.domain.Date strDate = (oracle.jbo.domain.Date) rw.getAttribute("Tgl");
    String strRkno = (String) rw.getAttribute("Rkno");
    oracle.jbo.domain.Number strRkId = (oracle.jbo.domain.Number) rw.getAttribute("Rkid");
    DCIteratorBinding iterParam = gen.getIteratorBinding("variables");
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pRkId", strRkId);
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pTgl", strDate);
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pRkNo", strRkno);
    OperationBinding operationBinding = gen.getOperationBinding("ExecuteWithParams");
    Object result = operationBinding.execute();
    But when I tried the same thing on SelectionEvent, I got nothing.. no error and also no result. What I want is just select the row on the second table, and get the result on the third table, with no any button pressing. Here is the code:
    public void onRowSelect(SelectionEvent selectionEvent) {
    DCIteratorBinding iter = gen.getIteratorBinding("SearchView3Iterator");
    Row rw = iter.getCurrentRow();
    oracle.jbo.domain.Date strDate = (oracle.jbo.domain.Date) rw.getAttribute("Tgl");
    String strRkno = (String) rw.getAttribute("Rkno");
    oracle.jbo.domain.Number strRkId = (oracle.jbo.domain.Number) rw.getAttribute("Rkid");
    DCIteratorBinding iterParam = gen.getIteratorBinding("variables");
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pRkId", strRkId);
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pTgl", strDate);
    iterParam.getBindingContainer().getVariableManager().setVariableValue("ExecuteWithParams_pRkNo", strRkno);
    OperationBinding operationBinding = gen.getOperationBinding("ExecuteWithParams");
    Object result = operationBinding.execute();
    So.. what is actually happening here? What is the differece between ActionEvent and SelectionEvent? Why do they give me difference response?
    Thanks for any comments.
    Regards,
    Novan Ananda

    Hi,
    ActionEvent :
    A semantic event which indicates that a component-defined action occured. This high-level event is generated by a component (such as a commandbutton,commandLink) when the component-specific action occurs (such as being pressed).
    SelectionEvent :
    Event that is generated when the selection of a component changes.
    //you can also search in api's

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Calling a drawLine() from one class to another from an ActionEvent

    I have several JPanel objects called and placed on a JFrame. The JFrame has a RadioButton group with radio buttons. If I select a radio button and call a drawLine() method from a JPanel, I receive a "NullPointerException". Is it not possible to call this graphic method from one class to another?
    Thanks for any input you can provide.
    John

    Remember that each panel draws it's own current state. So you need the ActionPerformed to change the state in your target panel.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class PanelComm extends JPanel {
      private SubPanelOne subPanelOne = new SubPanelOne();
      private SubPanelTwo subPanelTwo = new SubPanelTwo();
      public class SubPanelOne extends JPanel {
        public SubPanelOne () {
          setLayout ( new BorderLayout() );
          setBorder ( BorderFactory.createTitledBorder ( "SubPanel One" ) );
          Reactor     reactor    = new Reactor();
          ButtonGroup group      = new ButtonGroup();
          JPanel      radioPanel = new JPanel(new GridLayout(0, 1));
          JRadioButton buttonOne = new JRadioButton ( "One" );
          buttonOne.addActionListener ( reactor );
          group.add ( buttonOne );
          radioPanel.add ( buttonOne );
          JRadioButton buttonTwo = new JRadioButton ( "Two" );
          buttonTwo.addActionListener ( reactor );
          group.add ( buttonTwo );
          radioPanel.add ( buttonTwo );
          JRadioButton buttonThree = new JRadioButton ( "Three" );
          buttonThree.addActionListener ( reactor );
          group.add ( buttonThree );
          radioPanel.add ( buttonThree );
          add ( radioPanel ,BorderLayout.LINE_START );
        protected void paintComponent ( Graphics _g ) {
          super.paintComponent ( _g );
          Graphics2D g = (Graphics2D)_g;
          g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
      public class SubPanelTwo extends JPanel {
        private JLabel text = new JLabel();
        public SubPanelTwo () {
          setLayout ( new BorderLayout() );
          setBorder ( BorderFactory.createTitledBorder ( "SubPanel Two" ) );
          text.setFont ( new Font ( "Verdana" ,Font.PLAIN ,30 ) );
          text.setHorizontalAlignment ( JLabel.CENTER );
          add ( text ,BorderLayout.CENTER );
        protected void paintComponent ( Graphics _g ) {
          super.paintComponent ( _g );
          Graphics2D g = (Graphics2D)_g;
          g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
        public void setChoice ( String cmd ) {
          text.setText ( cmd );
      public class Reactor implements ActionListener {
        public void actionPerformed ( ActionEvent e ) {
          subPanelTwo.setChoice ( e.getActionCommand() );
      public PanelComm () {
        setLayout ( new GridLayout ( 1 ,2 ) );
        add ( subPanelOne );
        add ( subPanelTwo );
      //  main
      public static void main ( String[] args ) {
        JFrame f = new JFrame ( "Panel Communication" );
        f.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
        f.getContentPane().add ( new PanelComm() ,BorderLayout.CENTER );
        f.setSize ( 320 ,120 );
        f.setVisible ( true );
      }  // main
    }

  • Managed Attachments - creating a customCO for 'Managed Attachments' and opening a new browser/window  as ActionEvent through processFormRequest()

    Hi All,
    I am working on 'Managed Attachments' integration of Oracle E-Business Suite with Oracle WebCenter Content and I am very new to EBS.
    As per the customer requirement, we needed to enable the Managed Attachments on an SIT page (Employee Self Service --> Special Information-> and click on 'Add' for any of the 'Special Information' section) and the values they fill on these pages need to be passed to webcenter content.  As you know these segment data will not be inserted into the database until the user clicks on 'Submit' button from the review page,
    But the customer wants to save it on the 'Special Information' add page itself.
    Managed Attachments is an out of the box feature offered by Oracle WebCenter Content to replace FND Attachments functionality. Instead of storing the attachments in EBS, it will store to WebCenter Content.
    My requirements are as follows
    1) Enable the managed attachments on he special information 'add' page (e.g Company Property, Disabilities etc),- I am able to do this
    2) The data user fills in these fields , when user clicks on 'Managed Attachments' button , these values should be passed to the URL for managed attachments(which is already set on the button through processRequest() method when the page gets loaded) and thus pass to webcenter content
    With these requirements, the challenges i am facing are
    1) Since the user clicks on 'Managed Attachments' before even he/she clicks on 'Apply' button, how do I capture these values? can pageContext.getParameter('id') can get these?
    (i have already tried to do this in processFormRequest() method and i found that it is working for LOV fields but not for text fields)
    2) if i can get the values in processFormRequest(), how can i open a browser/window for the new URL()
    e.g, i wanted to write something like this and the finalURL is what i wanted to open in a new browser or window as the actionEvent
        public void processFormRequest(OAPageContext pageContext,   OAWebBean webBean) {
    super.processFormRequest(pageContext, webBean);
       String param1 = pageContext.getParameter(“Param1”);
    String param2 = pageContext.getParameter(“param2”);
    String redirectURL = “http://rstnssiovm0072.us.oracle.com:8000/OA_HTML/OA.jsp?page=/oracle/apps/ak/ucm/axf/webui/RedirectToAxfPG&bypassPageCounterIncr=Y&retainAM=Y”;
    String paramURL = “&Parameter1=”+ param1+”&Parameter2=”+ param2;
    String finalURL = redirectURL+paramURL;
    Code part to open the url in a new browser/window
    If anybody can help me with these part, it will be a great help
    thanks a lot in advance
    Regards
    Poornima

    Hi Poornima ,
    Has your prob resolved ? Have you made Managed attachment working via standard adapter as per UCM Admin guide ?
    Configuring the Managed Attachments Solution - 11g Release 1 (11.1.1)
    1. You have first store in some VO if you want to pass this metadata to UCM page , other wise it will not work .Take temp table /VO to store first then same can passed to UCM page as input parameters
    2.What needs to be passed , please refer webcenter guide with key examples given
    Once it is configured properly automatically params will be associated with URL which actually will open UCM page with metadata ( params) being passed.
    Thanks,
    Ashish

  • Problem with ValueChangeEvent vs. ActionEvent in JSP / ADF

    Hi all,
    I have an Oracle map viewer app in which I have a SelectOneChoice control for the user to pick the name of the place to map. I tried setting a value change listener on the control. This called the right Java method on my backing bean & did the map viewer stuff which returned the url of the image and assigned the url to the image widget on the page. However, when the page was re-displayed, the image was not there. I also assigned the url value to a text box and that showed a blank. So I added a command button which the user has to click on after selecting the place to map, with an action event listener, which works as desired.
    So can I add some additional operations in my Java code to make my ValueChangeEvent do whatever additional things the ActionEvent does so I don't need the command button?
    Thanks in advance.
    Jim Greetham

    Hi,
    mybean.onCheck(ValueChangeEvent valueChangeEvent) method should get called only when checked and unchecked event happens on check box .
    But if it gets called on row selection then it could be a bug.
    Regards,
    Shantala

  • Public void actionPerformed(ActionEvent e)

    public void actionPerformed(ActionEvent e)
            if(e.equals("north"))
                e.getSource().getClass(CLI);
        } hi i have a class called CLI which handles all the methods. i am reating a gui. i have created the buttons and layout and added actionlisteners to them. i am having trouble assigning the method north() whic is of type static void to the button.
    bassically when the button "north" is pressed i want to call the method North. i have been recommened to use the getSource() method from
    import java.util.EventObject;
    any ideas on where im going wrong?

    Forget getSource, assign a separate anonymous ActionListener to each button, that way when actionPerformed is called you already know which button was pressed.
    All you need to do (if you've put a handler method private void north() into your main class) is:
    northButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent e)  {
             north();
      });(And, obviously, similarly for other buttons).
    This creates an instance of an anonymous inner class and connects the button to it so that the actionPerformed method is called when the button is pressed. That, in turn, calls north(); Because it's an inner class it can use the methods of the class it's contained in.

  • JMenuItem ActionEvent Dinamically - Problems

    Hi, friends
    I am trying to use a JMenu and a JMenuItem wich are dinamicaly
    constructed getting data using a Oracle's Database Table.
    They are working fine, but I can't figured out how can I add
    ActionEvent dinamicaly. The piece of my code is down here:
    JMenuBar menuOpcao = new JMenuBar;
    JMenu menu[] = new JMenu[5];
    JMenuItem submenu[] = new JMenuItem[20];
    for (x=0;x<menu.lenght;x++)
    menu[x] = new JMenu();
    menu[x].setLabel(" menu " + x); //menu 1, menu 2...
    for (y=0;y<submenu.lenght;y++)
    submenu[y] = new JMenuItem();
    submenu[y].setLabel(" submenu " + y); // submenu 1...
    submenu[y].addActionListener(new ActionListener()
    { public void actionPerformed(ActionEvent e){
    System.out.println(e);}
    menu[x].add(submenu[y];
    menuOpcao.add(menu[x]);
    My problem: the ActionEvent is not working, because I need know
    wich Item I am clicking, so I can execute a query in a Database.
    Any Ideas?
    Thank you.
    null

    You don't use MouseListeners. You use ActionListeners.
    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html]How to Use Menus for working examples.

  • Problem handling ActionEvent in JButton

    I am having a peculiar while handling an ActionEvent associated with a JButton okB.
    Here is the code:
    okB.addActionListener (
         new ActionListener()
              public void actionPerformed(ActionEvent e)
                   System.out.println("Triggering Action");
                   saveProgress();
                   controlPanel.remove(buttonPanel);
                   controlPanel.remove(slider);
                   messageLabel.setText("Click on a button to perform an operation");
                   repaint();
    );Here I am trying to call a method to perform some operations and then remove some components from the panel containing them.
    Everything is working fine except one peculiar problem. The code inside the actionPerformed method is running more than once. When I click "OK" button for the first time, the actionPerformed is looping 1 time, when I click it for the second time, its looping 2 times. I confirmed this through the println code. I removed the problem through a loop control variable as follows:
    loopCOntrol = true;
    okB.addActionListener (
         new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if(loopControl)
                        loopControl = false;
                        saveProgress();
                        controlPanel.remove(buttonPanel);
                        controlPanel.remove(slider);
                        messageLabel.setText("Click on a button to perform an operation");
                        repaint();
    );Though this code is working correctly, still it is sort of a patch to the problem which I dont like. Is there any explanation for the problem?

    You are probably re-adding the listener somewhere. This would cause you to get one more event notice each time

  • Method not found:Next.execute(javax.faces.event.ActionEvent)ADF11.1.1

    Hi ,
    I created simple app in ADF11g production version.this is working fine in Jdev IDE.
    In my application two pages are there.in first page just ADF ROF is there.there youcan see the rows in a dept table thru navigation contrlos.and a submit button to navigate to next page.in second page ,i have createinsert button,delete,commit,rollback buttons.and abutton to navigate to first page.
    I deployed the EAR successfully to Extervnal WLS10.3while testing it from Browser,
    First i got first row in my table along with Navigation contrlos and submit button of first page in the browser.when i am clicking on next button(to move to next row) it is giving the following error in information box.
    Method not found: Next.execute(javax.faces.event.ActionEvent).
    And the WLS server domain error log is:
         Oct 31, 2008 10:00:09 AM EDT     netuix     Warning     BEA-423420     Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
         Oct 31, 2008 10:00:41 AM EDT     oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl     Warning     ADFC-54008     ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
         Oct 31, 2008 10:00:44 AM EDT     HTTP     Error     BEA-101017     [weblogic.servlet.internal.WebAppServletContext@2767c8 - appName: 'sailu', name: 'department_Application-viewcontroller-context-root', context-path: '/department_Application-viewcontroller-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1f9449a[ GET /department_Application-viewcontroller-context-root/faces/Depvue1.jspx HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ADMINCONSOLESESSION=G65pJLNKGrn9cqWKT2MYJNQThDyGwPhbTyhYv6G0JWf5GpbTyWB2!590494889 ]] Root cause of ServletException. java.lang.IllegalStateException: Cannot forward a response that is already committed at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:475) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:143) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:652) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:243) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Oct 31, 2008 10:00:46 AM EDT     oracle.adf.share.security     Warning     BEA-000000     Unable to locate the credential for key Connection1 in F:\oracleWls\user_projects\domains\sailubase_domain\config\oracle.
         Oct 31, 2008 10:00:46 AM EDT     oracle.adf.share.jndi.ReferenceStoreHelper     Warning     BEA-000000     Incomplete connection information
         Oct 31, 2008 10:00:52 AM EDT     oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator     Error     BEA-000000     Server Exception during PPR, #1 javax.servlet.ServletException: Method not found: Next.execute(javax.faces.event.ActionEvent) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) javax.faces.el.EvaluationException: Method not found: Next.execute(javax.faces.event.ActionEvent) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1226) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Oct 31, 2008 10:01:32 AM EDT     netuix     Warning     BEA-423420     Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
    And in this page when i am clicking on submit button to navigate to second page,it is not going to second page .it is in first page only.
    Can you tell me about this error and any changes to do for my code to get run my app on browser.
    I appreciate your help and time.

    Hi Frank,
    now my problem solved .just i created one more application newly and deployed it on External WLS.
    Now i am able to see all the rows in my DEPT table in my first page of app thru navigation contrlos.
    In the same way i am able to see all rows in second page also.and also able to edit the rows thru commit,delete buttons.and able to insert the rows also in second page.
    But the submit button to go from page1 to page2 is not working.and also the submit button from page 2 to page1 not working.
    I am giving the following in my URL:
    http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view1.jspx
    http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view2.jspx
    What i have to do in order to go from first page to second and second to first.in my IDE i am able to go.
    Is anything i have to change in my URL>
    Plz suggest me.

  • ActionEvent Vs FocusListener

    Hi all,
    and thx in advance.
    My problem look like the Bug ID: 4224932
    Environment Description :
    -     I have some some JtextField.
    -     each JtextField have an difference instance of FocusListener listener.
    -     On focusLost I�m doing a validation (check) of JtextField content.
    -     I have also OK Button.
    Problem Description:
    -     When I click on OK button first I receive the an ActionEvent and at the end we have focusLost Event.
    Consequence:
    -     last JtextField does�t have a validation.
    Restriction:
    - This problem append only on HPUX, on Windows I receive first the focusLost and then the ActionEvent.

    Swing related questions should be posted in the Swing forum.
    Use an InputVerifier, not a FocusListener.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • How to stop ActionEvent for a button

    Hi,
    I have a button "Start". On clicking the button, it will ask with a prompt "You really want to start" with Yes and No button. On clicking Yes button, the "Start" button is changed to "Cancel Stat..." and start running a process. If want to stop the process I have to click "Cancel Start..." button. But on clicking "Cancel Start..." button it again asks with the prompt "You really want to start" with Yes and No button. This should not happen.
    Please help me regarding this issue.
    Thanks in Advance....

    On click of Start button, a prompt with Yes No button will be displayed.
    On clicking Yes button, a process starts in a Thread and the button Start is changed to Cancel Start...
    Now I have to stop the process that runs in the Thread
    So, in the actionPerformed method, I have a flag and whenever the Cancel Start... is flipped, the process should be stopped which takes 1 min since a big query is taking a min to stop...
    So, I can't give another text as Cancelling.... but I'm setting the text as "Start"
    void cmdCancelStart_actionPerformed(ActionEvent e)
         isStop = true; //flag
         csv.isStopRequested(isStop); //The method used to stop the process
         cmdCancelStart.setBackground(Color.lightGray);
    cmdCancelStart.setText("Start"); //For name sake I'm setting as Start if not it will be as "Cancel Start..." and only after 1 min it will change to "Start".
    So, how I can overcome this?
    Thanks in Advance...
    }

  • Question about SWING and ActionEvent Object.

    When using a graphical component like a JButton,
    one typically adds an ActionListener Object to that button using the
    addActionListener method,
    in order for a click/appropriate action to execute desired Java code.
    One's desired code is within one's own ActionListener Object,
    which implements an appropriate interface and the equivalent of
    that interface's actionPerformed method.
    -How does one program one's own ActionEvent Object,
    and register that object (myActionEvent) with the java virtual machine
    such that your OWN event object is fired, instead of the
    default action?
    -Does instantiating one's appropriate ActionEvent object
    "fire" it as an event?

    Zac1234 wrote:
    When using a graphical component like a JButton,
    one typically adds an ActionListener Object to that button using the
    addActionListener method,
    in order for a click/appropriate action to execute desired Java code.Only for components that accept ActionListeners of course. This won't work with a JLabel for instance or any random "graphical component".
    -How does one program one's own ActionEvent Object,
    and register that object (myActionEvent) with the java virtual machine
    such that your OWN event object is fired, instead of the
    default action?Please explain exactly what you're trying to do here. Perhaps it's just me, but I'm not sure I understand what you mean by programming your own ActionEvent Object. An ActionEvent object can be simply created like any other object and by using the appropriate constructor (the API can help), but I don't think that you're talking here about ActionEven objects -- the parameter of the actionPerformed method, are you? Please give details as they are important here.
    -Does instantiating one's appropriate ActionEvent object
    "fire" it as an event?No, but again I'm stumped as to exactly what you're trying to do here.
    Finally, let's keep this discussion here, but next time, you will probably want to ask your Swing questions in the Swing forum.
    Best of luck.

  • Passing array to a method through actionevent? ??

    what the hell is this guy on about your asking..
    well.. i have a user defined data structures (people)
    and i'm creating my first gui, so i have an action caught with
    public static void main(String[] args)
    int MAX = 1000;
    person[] ppl;
    ppl = new person[MAX];
    public void actionPerformed(ActionEvent e) {
    if(e.getSource() == addNewPerson) {
    //method call in here to add new person
    //but how can i pass the array this far so i can then give it
    //to my method, or am i looking at this all wrong?
    }if as the comments suggests, i'm calling this all wrong, what way should i implement this? i'm basically getting cannot resolve symbol, pointing to my method which adds a new person (so as i said before, it needs to be passed to the method)

    You might want start by reading a few books on OO design first.
    What you will probably want to do is have a class which stores the array and extends ActionListener...
    public class Gui extends ActionListener {
      Person[] ppl = new Person[100];
      Component comp;
      Button addPersonButton;
      public Gui () {
        comp = new .....;
        addPersonButton = new Button("Add person");
        comp.add(addPersonButton);
        comp.addActionListener(this);
      public static void main(String args[]) {
        Gui gui = new Gui();
      public void actionPerformed(ActionEvent e) {
        if (e.getSource() == addPersonButton) {
          doAddPerson();
      pulbic void doAddPerson() {
        ppl[0] = ....
    }Hope this shows you a bit more. Not sure how good my design of gui's is though :-/
    Rob.

Maybe you are looking for

  • Mac Mini: DVI+TOSlink- HDMI Adapter, still fiction?

    Hello I've been studying for a while the best solution for connecting my early 2009 Mac Mini to my LCD TV and Blu-Ray 5.1 System. I didn't took long to figure out the "Mini-DVI->HDMI Adaptor for video" and "Mini-TOS->TOSlink for audio" scenario. The

  • WBS Element and Service No Link Table for Purchase Order document

    Hi Experts, We are Facing 1 Problem for finding link between WBS Element and Service No for corresponding Purchase Order document . Please Suggest me to find Related tables for Project system Module . Thanks and Regards BalaNarasimman.M

  • Production order wise stock

    Dear Experts , I have a requirement that i want to check production order wise stock in hand.its a bit urgent. Can anybody just help me out by some Tcode or some tables by which i can get the required data. Regards Sarfraz

  • Upgrade from EP6.0SP2 to Netweaver 04

    Hi, Currently we have EP6.0Sp2 Patch3 installed and running. Recently we have got Netweaver 04. Kindly let me know what is the procedure for upgrading from EP6.0SP2 to Netwearver 04. DO we need to build a new system? or can old system be upgraded. Th

  • Using Lightscribe for DVD printing

    Anyone out there use Lightscribe? Am I correct in that the dvd burner on my imac supports this program?