Send Click Event to System Form

Hi, i want to open a system form and open a specific entry.
but how can i send the button the click event?
what i was doing was:
sDocEntry = oCompany.GetNewObjectKey();
SBO_Application.ActivateMenuItem("1540");
oForm = SBO_Application.Forms.ActiveForm;
oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
((SAPbouiCOM.EditText)oForm.Items.Item("141").Specific).Value = sDocEntry;
((SAPbouiCOM.Button)oForm.Items.Item("1").Specific) ????
how can i do it??
regards
Philipp

HI,
sDocEntry = oCompany.GetNewObjectKey();
SBO_Application.ActivateMenuItem("1540");
oForm = SBO_Application.Forms.ActiveForm;
oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
((SAPbouiCOM.EditText)oForm.Items.Item("141").Specific).Value = sDocEntry;
((SAPbouiCOM.Button)oForm.Items.Item("1").click()
Regards,
J.
Ps: vote and points.

Similar Messages

  • Razer Abyssus mouse sends click events but no movement in X

    This is very strange: my mouse sends click events to X, but it does not move the cursor.  I don't have any funny packages installed and don't have an xorg.conf.  What can I do to make my mouse work?
    Bus 005 Device 003: ID 1532:001c Razer USA, Ltd RZ01-0036 Optical Gaming Mouse [Abyssus]

    Whooa, ok ... after unplugging it and plugging it back in, it works.  Strange.

  • Bubble Event and System Forms

    Hi together,
    I have a problem with using the BubbleEvent in combination with System-Form-Events:
    Target:
    If someone CLICK on the OK-Button in Systemform "134"
    (Business-Partners-Form), I want to stop the Form being closed.
    Concept:
    using the Item-Event "et_ITEM_PRESSED" and set the BubbleEvent-Flag to false.
    Sample-Code:
    If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
               (pVal.FormMode = SAPbouiCOM.BoFormMode.fm_OK_MODE) And _
               (pVal.FormTypeEx.Equals("134") = True) And _
               (pVal.ItemUID.Equals("1") = True) And _
               (pVal.BeforeAction = True) Then
                Try
                    BubbleEvent = False
                Catch ex As Exception
                    'check Errors
                End Try
            End If
    Problem and Test:
    Nevertheless the form is being closed. The BubbleEvent-Flag has no effect. As I read in other topics, the 2005 Environment only accept the Bubble-Event in BeforeAction.
    Three Events will be fired (Click on OK-Button):
    et_Click | beforeAction = true
    et_Click | beforeAction = false
    et_Item_pressed | beforeAction = true
    I have used the last Event (Item_pressed). Using the et_Click with beforeAction = true has also no effect.
    The events will always be used individually at the test, not combined.
    Maybe someone can resolve this problem...
    Best regards
    Jochen

    Strange. I implemented a very simple add-on with B1DE
    and added this listener:
        public class Button__134__1 : B1Item {
            public Button__134__1() {
                FormType = "134";
                ItemUID = "1";
            [B1Listener(BoEventTypes.et_ITEM_PRESSED, true)]
            public virtual bool OnBeforeItemPressed(ItemEvent pVal) {
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("1");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                return false;
    As you can read this listener set the bubble event to
    false for the button 1 in Form 134. The form cannot be
    closed, the event is handled correctly by the add-on. I am
    using 2005 SP1 but I guess it should be working the same
    for your release too.

  • Horizontal scroll on MX1000 sends click event as well. [SOLVED]

    As in the topic, I'm having problems with the horizontal scroll sending regular click events to apps as well as the scrolling, making the function pretty unusable. All my other keys work exactly as they should.
    As for my configuration, I'm running evdev, and I have "pointer = 1 2 3 4 5 7 6 8 9 10 11 12" in xmodmap.
    Ive tried changing the input with both imwheel and xbindkeys, but none of them would intercept the horizontal scroll. (Strange though, since it works fine with the other buttons)
    I don't know what else I can do. Is it just a lost cause?
    P.S: I know it's not app dependent, because I have tried it with every application I have.
    Last edited by Aziere (2007-03-25 16:05:48)

    I prefer evdev because I can't seem to get the thumb buttons to work without it.
    As for xev:
    ButtonPress event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1058103, (48,34), root:(471,325),
    state 0x10, button 13, same_screen YES
    EnterNotify event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x0, time 1058103, (48,34), root:(471,325),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16
    KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys: 85 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    ButtonPress event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1058127, (48,34), root:(471,325),
    state 0x10, button 6, same_screen YES
    ButtonRelease event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1058127, (48,34), root:(471,325),
    state 0x10, button 6, same_screen YES
    LeaveNotify event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x0, time 1058127, (48,34), root:(471,325),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16
    ButtonRelease event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1058263, (48,34), root:(471,325),
    state 0x10, button 13, same_screen YES
    ButtonPress event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1127089, (43,37), root:(466,328),
    state 0x10, button 14, same_screen YES
    EnterNotify event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x0, time 1127089, (43,37), root:(466,328),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16
    KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys: 38 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    ButtonPress event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1127105, (43,37), root:(466,328),
    state 0x10, button 7, same_screen YES
    ButtonRelease event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1127105, (43,37), root:(466,328),
    state 0x10, button 7, same_screen YES
    LeaveNotify event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x0, time 1127105, (43,37), root:(466,328),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16
    ButtonRelease event, serial 31, synthetic NO, window 0x1e00001,
    root 0x155, subw 0x1e00002, time 1127489, (43,37), root:(466,328),
    state 0x10, button 14, same_screen YES
    Seems pretty obvious what the problem is. It sends button 13/14 as input first, the continues with 6/7 which is the scroll. So what do I do to fix that?

  • Can you send custom events from one form to another?

    I have a compli
    cated application, where I about hundred inp
    uts organized in several input forms. Some of the forms
    require data which has been input in other forms. I have tried to
    dispatch custom events from one form to another, but it dispatches the
    whole form and I only need one or two items.
    Ha anybody else come across such a problem?
    Svend

    One way is to share data in a static singleton

  • Click event in Webdynpro abap for interactive form

    Hi ,
    I am using a ZCLI form to be developed using Webynpro abap . I am new to  webynpro abap but I have worked in offlined upload of pdf forms . My problem is I created a wedynpro component and integrated the form .The form is only opening up if the layout choosen is standard layout . if it is a zcli form it is not opening up . I am also not able to capture the click event from the form .
    some immediate help required.
    My requiremnt is to save 2 fileds from  a form in an interactive way to a SAP database using webynpro abap .
    Regards
    Abhil

    Hi Abhil,
    If your layout type is 'ZCI Layout' then you have insert the webdynpro script in the layout. After selecting the ZCI Layout click on enter and then go to layout tab, in this go to Utilities menu->select Insert WebDynpro Script.
    If you do this then in the Hierarchy tab of adobe form you can see the (Variable) ContainerFoundation_JS, it means that you have inserted WebDypro Script in the form.
    Finally activate the form and run the application.
    Thanks,
    Jhansi Miryala

  • Right Click on System Form

    Hello All:
       Is it possible to add right Click menu on System form? If so can anyone share some codes?? Thanks

    You may check these threads to have some idea:
    Disable Menu on System Form( like Purchase Order)
    system form
    Thanks,
    Gordon

  • Sending a right click event

    hello!
    is there a way to send a right click event?
    After a certain action I want to open the right click menu on the current form.
    any ideas?

    Here is my solution:
            private const uint MOUSEEVENTF_RIGHTDOWN = 0x0008;
            private const uint MOUSEEVENTF_RIGHTUP = 0x0010;
            [System.Runtime.InteropServices.DllImport("user32.dll")]
            private static extern void mouse_event(
            UInt32 dwFlags, // motion and click options
            UInt32 dx, // horizontal position or change
            UInt32 dy, // vertical position or change
            UInt32 dwData, // wheel movement
            IntPtr dwExtraInfo // application-defined information
            public static void SendClick(System.Drawing.Point location)
                System.Windows.Forms.Cursor.Position = location;
                mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, new System.IntPtr());
                mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, new System.IntPtr());
    I placed this code into the method where I want to do a rightclick (position):
    SendClick(position);

  • Open system form on button click

    Hello Expert,
    How to open system form(invetery transfer from) on button click
    Regards,
    Abhinav Lalpurwala

    Hi Abhinav
    Try This.....
    'In Button pressed event
       sbo_application.ActivateMenuItem("3080") 'For Inventory Transfer form
    Thanks
    Shafi

  • Problem catching events after opening system form

    Hi
    In my addon i open a system form from a user form. after closing the system form , my user form does not cause any event to be handled by my addon. in other words pressing on the forms button items does not cause any event to accure. in order for the form to work i need to close the form and reopen it from the menu. question is how can i know what is causing the form to stop responding and how can i fix it?
    appreciate the help
    Yoav

    Hi Yoav,
    It looks like when the system, form closes you remove a filter for your user form or your remove the listener for your user form.
    Regards
    Ad

  • How can i update system form udf based on udt add event

    hello experts,
    i require small functionality on customized form add event,one of the system form udf value at row level should be update for particular row on based on the values on the customized form.
    so it should go like this on add event of customized form system form's row level udf should be update
    Regards,
    Bhavank

    Hi
    Are you opening your customised form with reference to any system form or it works alone?
    If it works alone then on the add event of customized form you haveto use update query with reference to the system form
    Regards

  • How to send an event to external system?

    Hi
    I am facing problem in sending the event to an external system.
    Initially I created 2 workflows with different itemtypes. One has send event and other has receive event. This works perfectly when I use the WF_OUT and WF_IN agents of the same system.
    Now, I signup two workflow server ( running in two PC, on Oracle 8.1.7 ). I have followed the following steps.
    a. creating database links.
    b. Signing up the system.
    c. changing the system status to enabled in Global Preference Page.
    In the event subcription in System1 is local, Out agent is Wf_OUT of System1 and the TO Agent is Wf_IN of System2. There is external subscription for the same event in System2 without Agents.
    When I run the workflow with send event, the event message goes to WF_OUT agent with the status Ready, but never propogates.
    What could be the reason? Can anyone help me?
    Thanks a lot.

    Hi
    Thanks for immediate respose. I tried the ping/acknowledgement example in the biginning itself. It doesn't work. I also tried by changing the agents ( to respective values suitable for my systems) of that example. Then also it failed. The error in that case also same. The message will not propogate from the out going agent.

  • Hide form generated from a click event

    I'm creating an AddOn that is calling the click event of the freight button on the Sales Order screen. I then capture the Freight Charges form that is displayed, populate it with the required information and close the form. The problem that I have is that this causes the Freight Charges screen to flash. I would like to hide this form so that the user doesn't see this flash. I set the form's visible property to false on the after form load event but this doesn't work. Can anyone offer any suggestions?
    Thanks

    hi
    You can from the screen painter set the form property Visible to False.  Then in code once you have are done with loading events do a
            oForm.Visible = True
    Other way is to do a                            
    oForm.Freeze(True)
    and after you are done executing the events do a
                        oForm.Freeze(False)
    But be careful.  If an error occurs you have to trap it and so you can set your form to
                        oForm.Freeze(False)
    Otherwise it can stay on the freeze state and well that's how you'll see it

  • System forms

    hi kings
    i m trying to change the system opportunity forms. i just add one folder the folder contain matrix... i take the example programs(system manipulation)..the folder added.. the matrix also added.. but unfortunately the matrix not allow to enter the data and how to save the data .... here i pasted full codings....please any one help me...
    Code....
    Public Class SystemForm
        Private WithEvents SBO_Application As SAPbouiCOM.Application
        Private oOrderForm As SAPbouiCOM.Form
        Private oNewItem As SAPbouiCOM.Item
        Private oItem As SAPbouiCOM.Item
        Private oFolderItem As SAPbouiCOM.Folder
        Private oOptionBtn As SAPbouiCOM.OptionBtn
        Private oCheckBox As SAPbouiCOM.CheckBox
        Private oMatrix As SAPbouiCOM.Matrix
        Private oColumns As SAPbouiCOM.Columns
        Private oColumn As SAPbouiCOM.Column
        Private i As Integer '// to be used as a counter
        Private Sub SetApplication()
            Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi()
            sConnectionString = Command
            SboGuiApi.Connect(sConnectionString)
            '// get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Private Sub AddItemsToOrderForm()
            oOrderForm.DataSources.UserDataSources.Add("OpBtnDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oOrderForm.DataSources.UserDataSources.Add("CheckDS1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oOrderForm.DataSources.UserDataSources.Add("CheckDS2", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oOrderForm.DataSources.UserDataSources.Add("CheckDS3", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oItem = oOrderForm.Items.Item("7")
            For i = 1 To 3
                oNewItem = oOrderForm.Items.Add("CheckBox" & i, SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
                oNewItem.Left = oItem.Left
                oNewItem.Width = 100
                oNewItem.Top = oItem.Top + (i - 1) * 19
                oNewItem.Height = 19
                oNewItem.Visible = False
                oNewItem.FromPane = 5
                oNewItem.ToPane = 5
                oCheckBox = oNewItem.Specific
                '// set the caption
                oCheckBox.Caption = "Check Box" & i
                '// binding the Check box with a data source
                oCheckBox.DataBind.SetBound(True, "", "CheckDS" & i)
            Next i
            '// Adding Option button items
            '// use an existing item to place youe item on the form
            'oItem = oOrderForm.Items.Item("44")
            For i = 1 To 3
                oNewItem = oOrderForm.Items.Add("OpBtn" & i, SAPbouiCOM.BoFormItemTypes.it_OPTION_BUTTON)
                oNewItem.Left = oItem.Left
                oNewItem.Width = 100
                oNewItem.Top = oItem.Top + (i - 1) * 25
                oNewItem.Height = 19
                oNewItem.Visible = False
                '// set the Item's Pane Level.
                '// this value will determine the Items visibility
                '// according to the Form's pane level
                oNewItem.FromPane = 9
                oNewItem.ToPane = 9
                oOptionBtn = oNewItem.Specific
                '// set the caption
                oOptionBtn.Caption = "Option Button" & i
                If i > 1 Then
                    oOptionBtn.GroupWith("OpBtn" & i - 1)
                End If
                oOptionBtn.DataBind.SetBound(True, "", "OpBtnDS")
            Next i
        End Sub
        Private Sub AddMatrixToForm()
            '// we will use the following object to add items to our form
            Dim oItem As SAPbouiCOM.Item
            '// we will use the following object to set a linked button
            Dim oLink As SAPbouiCOM.LinkedButton
            '// Adding a Matrix item
            oItem = oOrderForm.Items.Item("7")
            oItem = oOrderForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
            oItem.Left = 35
            oItem.Width = 400
            oItem.Top = oItem.Top + (i - 1) * 60
            oItem.Height = 125
            oMatrix = oItem.Specific
            oColumns = oMatrix.Columns
            oItem.FromPane = 9
            oItem.ToPane = 9
            '// Adding Culomn items to the matrix
            oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "#"
            oColumn.Width = 30
            oColumn.Editable = False
            '// Add a column for BP Card Code
            oColumn = oColumns.Add("DSCardCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oColumn.TitleObject.Caption = "Item Code"
            oColumn.Width = 150
            oColumn.Editable = True
            '// Link the column to the BP master data system form
            oLink = oColumn.ExtendedObject
            oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
            '// Add a column for BP Card Name
            oColumn = oColumns.Add("DSCardName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "Description"
            oColumn.Width = 150
            oColumn.Editable = True
            'oColumn.DataBind.SetBound(true, "TableName", "U_ItemNo")
            '// Add a column for BP Card Phone
            oColumn = oColumns.Add("DSPhone", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "Quantity"
            oColumn.Width = 70
            oColumn.Editable = True
        End Sub
        Public Sub New()
            MyBase.New()
            SetApplication()
        End Sub
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If ((pVal.FormType = 320 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
                '// get the event sending form
                oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
                    '// add a new folder item to the form
                    oNewItem = oOrderForm.Items.Add("UserFolder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                    oItem = oOrderForm.Items.Item("7")
                    oNewItem.Top = oItem.Top
                    oNewItem.Height = oItem.Height
                    oNewItem.Width = oItem.Width
                    oNewItem.Left = oItem.Left + oItem.Width
                    oFolderItem = oNewItem.Specific
                    oFolderItem.Caption = "User Folder"
                    '// group the folder with the desired folder item
                    oFolderItem.GroupWith("7")
                    '// add your own items to the form
                    AddItemsToOrderForm()
                    AddMatrixToForm()
                    oOrderForm.PaneLevel = 1
                End If
                If pVal.ItemUID = "UserFolder" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.Before_Action = True Then
                    oOrderForm.PaneLevel = 9
                End If
            End If
        End Sub
        Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes)
            Select Case EventType
                Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                    '// Take care of terminating your AddOn application
                    SBO_Application.MessageBox("A Shut Down Event has been caught" & _
                        vbNewLine & "Terminating 'Order Form Manipulation' Add On...")
                    End
            End Select
        End Sub
    End Class
    Thanks & Best Regards
    B.Lakshmi Narayanan

    Events Part
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If ((pVal.FormType = 320 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
                '// get the event sending form
                oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
                    '// add a new folder item to the form
                    oNewItem = oOrderForm.Items.Add("UserFolder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                    '// use an existing folder item for grouping and setting the
                    '// items properties (such as location properties)
                    '// use the 'Display Debug Information' option (under 'Tools')
                    '// in the application to acquire the UID of the desired folder
                    oItem = oOrderForm.Items.Item("7")
                    oNewItem.Top = oItem.Top
                    oNewItem.Height = oItem.Height
                    oNewItem.Width = oItem.Width
                    oNewItem.Left = oItem.Left + oItem.Width
                    oFolderItem = oNewItem.Specific
                    oFolderItem.Caption = "User Folder"
                    '// group the folder with the desired folder item
                    oFolderItem.GroupWith("7")
                    '// add your own items to the form
                    AddItemsToOrderForm()
                    AddMatrixToForm()
                    oOrderForm.PaneLevel = 1
                End If
                'If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And pVal.Before_Action = True Then
                'oOrderForm.PaneLevel = 5
                'End If
                If pVal.ItemUID = "UserFolder" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.Before_Action = True Then
                    '// when the new folder is clicked change the form's pane level
                    '// by doing so your items will apear on the new folder
                    '// assuming they were placed correctly and their pane level
                    '// was also set accordingly
                    oOrderForm.PaneLevel = 9
                End If
            End If
        End Sub
    Thanks & Best Regards
    B.Lakshmi Narayanan

  • Clicking twice on a Form submit button

    I have problem that I need either help on solving or ideas on a different solution please.
    I have some code in a request scope backing bean that sets a Boolean in a session cope bean to true. This indicates that the form has been submitted within this session.
    So if a user tries to submit the same form in the same session, the form backing bean will check the session bean property, see that it is set to true and the method which handles the Form�s commandButton in the backing bean returns null, with a message saying that the form can not be resubmitted.
    Also within the session bean I set a property that indicates if a credit card payment was made or not, and when the form backing bean sends its message on a form resubmit, it also informs the user if a credit card transaction had actually occurred or not.
    This works fine when you fully submit the form and return to the form page and try to resubmit it. But (there always is a but) when originally submitting the form, if a user clicks the submit button once, and then once again in quick succession (not a double click though) the session form property that gets set to true when the credit card payment is made does not get resolved correctly. It gets resolved as false (this is how it is initialized), even though it was set to true as a result of the first click.
    Only in the case of the clicking twice scenario I get an exception in the log file, which I can�t trace back. The request is directed through a filter �OrderAccessControlFilter� which seems to mask where the exception originally occurred.
    Sorry for the long explanation, I would appreciate any help.
    Below is the exception:
    10-Feb-2005 10:55:16 com.sun.faces.lifecycle.InvokeApplicationPhase execute
    SEVERE: Index: 0, Size: 0
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.remove(ArrayList.java:392)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.syndero.lingo.order.OrderAccessControlFilter.doFilter(OrderAccessControlFilter.java:199)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    10-Feb-2005 10:55:16 com.syndero.lingo.order.OrderAccessControlFilter doFilter
    SEVERE: Error in OrderAccessControlFilter:
    javax.servlet.ServletException: Index: 0, Size: 0
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.syndero.lingo.order.OrderAccessControlFilter.doFilter(OrderAccessControlFilter.java:199)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)

    Hi,
    I am also facing the same problem. I have 2 buttons on my page, enable and disable. When I click enable and then disable in quick succession, the application crashes.
    Also, I put in some System out statemets in the button handlers and found out that a new thread is spawned for every request made. Each if this thread tries to service all the actions performed on the page.
    For eg : if i click on Enable and the Disable in my application, the flow is like:
    1. Thread 1 goes into the enable handler
    2. A new Thread 2 goes into the enable handler
    3. Thread 1 returns from enable action
    4. Thread 1 goes into the disable handler
    5. Thread 2 returns from enable handler
    6. Thread 1 returns from disable handler.
    7. Application crashes.
    Can anyone please explain this flow?
    Thanks,
    Mahajan.

Maybe you are looking for