Coldfusion 8: Onblur doesn't fire on autosuggest cfinput

Hello,
I have a problem using the autosuggest cfinput. Here is the
sample of my code.
<cfinput name="item_number" maxlength="20" type="text"
maxResultsDisplayed="20"
autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
onBlur="javascript:loadData();" >
function loadData(){
document.frmInventoryData.isLoadData.value = '1';
target='_self';
document.frmInventoryData.submit();
The event Onblur does not fire after the autosuggest has been
selected. When the form is submitted, “item_number” has
the value that the user entered, but not the value that the user
selected from the autosuggest. I have tried all the available
events of cfinput like onChange, onMouseOut.., but it still
doesn’t work. Please help. Thanks for your time.
Vi

I am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.
If it is enabled the following is required:
setsebool -P httpd_can_network_connect 1
This is necessary for mod_jk to talk to ColdFusion.  It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,
Also:
/opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t
mod_jk.log must be httpd_log_t.   /var/log/httpd is a good place for it.
Use chcon -t to make these changes
Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.

Similar Messages

  • Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem with the autosuggest cfinput. I am using
    Coldfusion 8 and Fusebox 5. Here is the sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.

    If you would like to.
    SelectOneChoice component:<af:selectOneChoice label="Падеж" id="soc2"
                                        value="#{backingBeanScope.Page1ManagedBean.padeg}"
                                        autoSubmit="true">
                      <af:selectItem label="Именительный" id="si3" value="0"/>
                      <af:selectItem label="Родительный" value="2" id="si4"/>
                      <af:selectItem label="Винительный" value="3" id="si5"/>
                      <af:selectItem label="Дательный" value="4" id="si6"/>
                      <af:selectItem label="Творительный" value="5" id="si7"/>
                      <af:selectItem label="Предложный" value="6" id="si8"/>
                    </af:selectOneChoice>Related outputText:<af:panelLabelAndMessage label="Предпросмотр:" id="plam13"
                                             rendered="true">
                      <af:outputText value="[ANY_MAN(#{bindings.LookupEmpIdE.inputValue}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? ',padeg=' : ''}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? backingBeanScope.Page1ManagedBean.padeg : ''})]" id="ot10"
                                     partialTriggers="soc2 pc1:resId2"/>
                    </af:panelLabelAndMessage>Backing bean variable:private int padeg = 0;
    public int getPadeg() {
          return padeg;
      public void setPadeg(int padeg) {
          this.padeg = padeg;
      }

  • Validate Method doesn't fire in insert - is it a bug ?

    I tried to use the validate method in a VO based upon 2 Entities.
    It works but when I insert a new row it doesn't fire.
    Is it a bug ?
    If not what's explanation for that behaviour ?
    Tks
    Tullio

    ViewObjectImpl.validate() is not called automatically in the BC4J framework.
    Validation by default should be implemented in the entities and EntityImpl.validate() is called by the framework on invalid entities when the Entity needs to be validated.

  • Fault policy doesn't fire when asynchronous calls to BPEL  in soa11g

    Hi,
    I have created mainporcess and subprocess both are asynchronous process . exceptions thrown by subprocess are caught in mainprocess using call back operation and fault policy defined in fault-polacy/binding doesn't fire .
    if the subprocess is synchronous exceptions thrown by subprocess are caught in mainprocess and creating human-intervention job for Retry action as defined in fault-polacy/binding.
    Generally how we can handle custom Faults in A asynchronous calls to composites/BPEL processes?
    Thanks
    Ravi

    Hi ,Milan
    Thanks for your response . in subprocess callback port having two operations processResponse,callbackexception
    <wsdl:portType name="BPELProcessAsynchDetailsCallback">
              <wsdl:operation name="processResponse">
                   <wsdl:input message="client:BPELProcessAsynchDetailsResponseMessage"/>
              </wsdl:operation>
              <wsdl:operation name="callbackexception">
                   <wsdl:input message="client:FaultMessage"/>
              </wsdl:operation>
         </wsdl:portType>>
    Any exeptions thrown by suborocess is calling callbackexception operation and main process having pick activity for receiving both processResponse and callbackexception operations.
    subprocessdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="FaultVar">
    <sequence>
    <assign name="Assign2">
    <copy>
    <from expression="'code'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:code"/>
    </copy>
    <copy>
    <from expression="'summary'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:summary"/>
    </copy>
    <copy>
    <from expression="'details'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:detail"/>
    </copy>
    </assign>
    <invoke name="Invoke1"
    inputVariable="Invoke1_callbackexception_InputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="callbackexception"
    bpelx:invokeAsDetail="no"/>
    </sequence>
    </catch>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcessAsynchDetails.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocessasynchdetails_client" portType="client:BPELProcessAsynchDetails" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <switch name="Switch1">
    <case condition="bpws:getVariableData('inputVariable','payload','/client:process/client:input')='test'">
    <bpelx:annotation>
    <bpelx:pattern>test</bpelx:pattern>
    <bpelx:general>
    <bpelx:property name="userLabel">test</bpelx:property>
    </bpelx:general>
    </bpelx:annotation>
    <sequence>
    <empty name="Empty1"/>
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="FaultVar"/>
    </sequence>
    </case>
    <otherwise>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </otherwise>
    </switch>
    <invoke name="Invoke2" bpelx:invokeAsDetail="no"
    inputVariable="outputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="processResponse"/>
    </sequence>
    mainprocesdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="Variable1"/>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1ASynch.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynch" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="Invoke1_process_InputVariable" part="payload"
    query="/ns1:process/ns1:input"/>
    </copy>
    </assign>
    <invoke name="Invoke1" bpelx:invokeAsDetail="no"
    inputVariable="Invoke1_process_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetails" operation="process"/>
    <pick name="Pick1">
    <onMessage variable="OnMessage_processResponse_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="processResponse">
    <sequence name="Sequence2">
    <assign name="Assign3">
    <copy>
    <from variable="OnMessage_processResponse_InputVariable"
    part="payload"
    query="/ns1:processResponse/ns1:result"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage variable="OnMessage_callbackexception_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="callbackexception">
    <sequence name="Sequence1">
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="Variable1"/>
    </sequence>
    </onMessage>
    </pick>
    <invoke name="callbackClient" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynchCallback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>

  • Attributecollection feature doesn't work properly in cfinput tag.

    Attributecollection feature doesn't work properly in cfinput
    tag.
    Id specified is not used but name property instead.
    Steps to reproduce bug:
    1. Use code:
    <cfform>
    <cfset st = StructNew()>
    <cfset st.name = "ab">
    <cfset st.id = "a_b">
    <cfinput attributecollection="#st#" />
    <cfinput name="ac" id="a_c" />
    </cfform>
    Results:
    Output:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="ab" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Expected results:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="a_b" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Is this a bug?

    Thanks for bringing this issue to light.
    We are looking into it.

  • Why does my shutter button not work in tethered capture mode? Camera is recognized, but doesn't fire

    The shutter button does not fire the camera. My Canon 1ds Mark III and its settings are recognized, but the button does NOTHING. 

    Possibly the flex connector of the charging dock, flex ribbon (#4) is not perfectly seated down to the logic board.

  • Et_validate doesn't fire if user changes value and presses update button

    I am maintaining a flag for "dirty" records in a potentially large number of rows in a matrix. To set this flag I check for the et_Validate event and ItemChanged = true. This works fine if the user changes a value and then presses tab to leave the field.
    My problem is that et_Validate does not fire if the user changes a field's value and then presses the update button.
    It's like the screenpainter where if you change a field's value and then select a different field before pressing tab your change isn't saved.
    I suppose I could always send a tab keypress or automatically update the current row but I'm wondering how others handle this.
    I am currently using SBO2005A SP1 PL11.

    Additional info:
    If I change a matrix cell and click on the update/ok button then the ItemEvent.row = -1 and the active item is still the matrix. If I force a "click" in a field on the first row then the et_validate fires otherwise it does not.
    Does anyone have any other ideas on forcing et_Validate to fire when the user clicks on a button?

  • Can an autosuggest cfinput be controlled/filtered by a select menu?

    I'm working on a search service where there are going to be at least 3 types of searches, each of which can be made easier by using an autosuggest.  Is it possible to change the binding/returned values for the autosuggest based on what the user has selected in a select menu?

    Yes, its fairly straightforward to pass more values to the CFC doing the autosuggest:
    <cfform>
    Art:
    <select name="addThis" id="addThis">
    <option>Yes</option>
    <option>Test</option>
    </select>
    <cfinput type="text"
            name="artname"
            autosuggest="cfc:art.lookupArt({cfautosuggestvalue}, {addThis})">
    </cfform>
    This will pass the value of addThis to the lookupArt function in art.cfc

  • Showing/Hiding annotation with onFocus/onBlur

    Hi-
    I'm having trouble using the onBlur and onFocus events in the same form field.
    I have an annotation that has these props when the document loads: What hidden=true and popupOpen=false
    On a form field, I've attached the following script to the onFocus event:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:false,
        popupOpen:true
    This works fine when I don't have an onBlur event. (The annotation shows up when cursor enters field)...
    BUT, when I add the following script to the onBlur event, the annotation disappears and doesn't come back onFocus:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:true,
        popupOpen:false
    What seems to be happening is the OnBlur event is firing right after the onFocus. When I dump the annot props above the set method in onBlur, I do see the correct values (hidden=false, popupOpen=true).. Maybe when I show the annotation, the annotation itself gets focus, and therefore the field loses focus and the onBlur event fires?)
    Does anyone know a workaround for this? Maybe a way to maintain focus on the form field?
    Thanks

    Hi-
    @GK - Thanks for the reply. Not sure I understand what you mean tho.
    Fwiw, this doesn't seem to be a propblem if you don't use an annotation with a popup window (which steals the focus from the form field, causing the field.onBlur event to fire). So, if anyone else runs into this issue, try using 'FreeText' type...

  • POP + javascript :doesn't save to the session

    hello,
    I have a select list and a popup. I'm trying to assign the value to the POP item using javascript but it's not working.
    Here is the Link: [link |http://apex.oracle.com/pls/otn/f?p=11910:1:1730577978881661::::: ] .
    Select any value in LOV ID. observe "mnually set" appears in the POP.
    click "submit". Validation " not null" will fail...
    Here is debug and javasript:
    Session State: Save form items and p_arg_values
    0.04: ...Session State: Saved Item "P1_LOV_ID" New Value="2"
    0.04: ...Session State: Saved Item "P1_AJAX" New Value="21"
    0.04: ...Session State: Save "P1_TEMP" - saving same value: "2"
    0.04: ...Session State: Save "P1_LOV_SUBMIT" - saving same value: "%null%"
    *0.04: ...Session State: Save "P1_POP" - saving same value: "undefined"*
    0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    <skip>
    javascript:
    function set_Value_LOV(pThis,pSelect){
    var l_Return = null;
    var l_Select = $x(pSelect);
    var l_Value = " Manually set" ;
    l_Select.value = l_Value ;
    The LOV defined in POP is static and has one line.
    the interesting caveat:
    in IE 7 the validation fails. in FF3 the field has "undefined" string and apparently this doesn't' fire up the validation. At the same time it should be "manually set"....
    Maybe i should use some other property of the POP DOM object to actually set the value ?
    Please help
    Edited by: andrey on Dec 10, 2008 10:10 AM

    Hello Andrey,
    >> i love Oracle, but, man, this is sick
    First, I’m sorry I didn’t have time to check your example sooner. It happens sometimes, you know your day job … :)
    Secondly, your popup problem, not saving session state, has nothing to do with Oracle or APEX. It’s actually HTML.
    The type of popup item you chose to use sets the item to a disabled state – you can see that the content of the field is gray. Disabled items don’t get to be submitted to the server – this is the HTML part - hence session state can’t be saved – directly – using this item. That is the reason for the other item, the hidden one. This is a regular item, which gets to be submitted, and the APEX engine takes its value and set it as the session state of the original popup item. In your case, your JavaScript code only updated the disabled item, so the session state source remained empty.
    Regards,
    Arie.

  • Coldfusion 11 error with cflayout

    0 down vote  favorite  
    I have some applications developed on older CF versions (9&10) and in anticipation of a hosting system migrating to CF11 and started doing some
    testing with a CF development platform on Windows 8 with Apache 2.4. I have found that in CF11 pages using cflayout and cflayoutarea does not work
    correctly when collapsed with javascript:ColdFusion.Layout.collapseArea.  Firebug does flag an error in the CF javascript. Wondering if anyone else
    has seen a problem like this and if there is a circumvention I could use to get this working.
    A very simple example (complements of the Chapter 2 cflayout example demonstrated in Dan Short's video on Ajax & Coldfusion) fails as well on
    CF11 but works in CF9 & CF10. 
    main.cfm
    <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cflayout name="borderLayout" type="border" fittowindow="true"> <cflayoutarea name="header" position="top" size="75">This is the header<br /> <a href="javascript:ColdFusion.Layout.collapseArea('borderLayout', 'left');">Collapse Left Column</a><br> </cflayoutarea> <cflayoutarea name="centerColumn" position="center" source="content.cfm?pageName=Header 1" /> <cflayoutarea name="rightColumn" position="right" style="width: 100px;">This is the right column</cflayoutarea> <cflayoutarea name="leftColumn" position="left" title="Left Column" style="width: 250px;" collapsible="true" splitter="true" minsize="200"> This is the left column<br /> <a href="javascript:ColdFusion.navigate('content.cfm?pagename=Header 2', 'centerColumn');">Load Header 2</a> </cflayoutarea> <cflayoutarea name="footer" position="bottom">This is a footer &copy; 2010</cflayoutarea> </cflayout> </body> </html>
    content.cfm
    <cfsilent> <cfparam name="URL.pageName" default="Default header" /> </cfsilent> <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cfoutput><h2>#URL.pageName#</h2></cfoutput> <p>This is the text content from content.cfm</p> </body> </html>  

    use <CFAJAXIMPORT tag and make sure you have the CFIDE folder as a virtual directory in your IIS local or server machine. if the "cfajaximport" tag alone didn't work, try using it in little more details to the path of CFIDE folder and specify cflayout within the cfajaximport tag as follows:
    <CFAJAXIMPORT
        CSSSRC = "CFIDE/scripts/ajax/"
        SCRIPTSRC = "/CFIDE/scripts"
        TAGS = "cfdiv,cfform,cfgrid,cfinput-autosuggest,cfinput-datefield,cflayout-border,cflayout-tab,cfmenu,cftextarea,cftooltip,cftree,cfwindow">
    Normally, you shouldn't need all these specifications in the cfajaximport but in case you may try it in more detail as shown above.

  • How do I add/update/delete data using ColdFusion Builder 3?

    I feel like this is a really simple and stupid question and should be easy to figure out, but I can't.
    I am relearning ColdFusion after 12 years out of the IT field.  I am using the ColdFusion 9 Getting Started:Volume 1 book.  In Chapter 7 it states that I need to edit the Application.cfc file so that I can edit the database rather than just selecting from the database.  I can't seem to find anything related to that file in any search.  In my ColdFusion 11 Administrator I have set this mySQL database to be able to be edited, but ColdFusion Builder 3 doesn't seem to allow any editing of the tables.  I have not had much luck searching for help regarding this on the internet either.  My biggest problem so far is getting ColdFusion Builder to talk with my mySQL database properly so I can actually get on with relearning ColdFusion and writing code.  Frustrating!!

    I do have ColdFusion 11 Administrator installed.  When I go to Data and Services there and open the datasource (OWS) that I want to connect to and query off of, and go to Advanced Settings, I show that the following are selected:
    SELECT
    CREATE
    GRANT
    INSERT
    DROP
    REVOKE
    UPDATE
    ALTER
    Stored Procedures
    DELETE
    If, in ColdFusion Builder 3, I open the RDS Query viewer and write the following basic update query (Server: default:local; Datasource: OWS):
    insert into directors(FirstName, LastName)
    Values ('Benjamin', 'Forta');
    I get the following RDS error message:
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
    According to the book and some information I have seen online, the SQL Query Tool, for security's sake, by default allows execution of SELECT statements, but no other SQL statements.  According to the book, to change this behavior I need to edit the Application.cfc file in the ows/sql directory.  I have to change the THIS.select_only flag from the default of yes to no and save the file.  I cannot find this file anywhere.  I have seen an application.cfm, but I think this is different that what they want because I can't find anything in that file that says THIS.select.

  • ReturnListener doesn't work Jdev 11g

    Hi,
    I was testing the implementation of dialogs using jdeveloper 11g (window A launches window B).
    It appears that my returnListener code method (window A) doesn't fire after I close the dialog (window B).
    I'm launching the dialog from a link in a column within a RichTable object.
    The execution goes through the launchListener (win A), the actionListener of the close button of the dialog (win B),
    but never goes through the returnListener (win A).
    Maybe I missed something.
    Thanks for any Idea on what's happening.

    Quick question - are you using the faces-config.xml or the adfc-config.xml to specify your navigation?
    Try the adfc-config.xml if you don't use it already.

  • CTL-F = ColdFusion Search = BROKEN = PLEASE HELP!!!

    I'm using CF Builder Version: 2.0.0, Build: 278082 (I just installed hotfix 1 hoping that would solve these problems, but it didn't)
    1) Using the ColdFusion Search between files doesn't work for me. Example: CTL-F (opens CF Search dialog) and I paste in "cfoutput" (without the quotes). I repeatedly hit the Find button and cycle through all the matches in the document. Then I select a different document, the ColdFusion Search dialog is still on top, I click the "Find" button and nothing happens. The ColdFusion Search dialog doesn't do anything, even though there are matches in the current document. I have to close the dialog, hit CTL-F again, and re-execute the search. This is completely different from the eclipse Find dialog behavior, where you can conduct the same search after switching the current document.
    2) Why do multiple ColdFusion Search dialogs open? I can open as many as I want by entering CTL-F. Shouldn't it just select the dialog if it's already open? I don't get it.
    Also, the CF Search dialog window position is not saved, which adds a lot more clicks to my work flow!
    I must be missing something here... this is either broken or I'm not understanding something. Or better yet, maybe I can have my old eclipse find dialog back!!!
    Thanks in advance!
    -JP

    Here are the bugs I created... would be great if they got votes. I cannot use CFB 2 without fixes to these problems because I rely on CTL-F to work correctly. I'm not sure how these things passed QA... it's a far departure from the way std. eclipse and CFB 1 work. At the very least, we need a patch or workaround that will allow us to turn off ColdFusion Search and use the built in eclipse Find dialog.
    ColdFusion Search "Current Document" scope does not work when selecting a different file
    https://bugbase.adobe.com/index.cfm?event=bug&id=2999830
    ColdFusion Search does not save settings
    https://bugbase.adobe.com/index.cfm?event=bug&id=2999795
    There is no way to disable multiple ColdFusion Search dialogs
    https://bugbase.adobe.com/index.cfm?event=bug&id=2999818

  • Ensuring stateChanged fires whenever componentRemoved fires in JTabbedPane

    Hello,
    I have a question on how to ensure that a ChangeEvent fires (once and only once) every time a tab is removed.
    I have a JTabbedPane that has a ChangeListener and ContainerListener hooked to it. What I've concluded is that:
    -if a tab is added to an empty JTabbedPane:
    1.) componentAdded fires,
    2.) stateChanged fires
    -if a tab is added to a JTabbedPane already containing panes:
    1.) componentAdded fires
    -if a tab is removed from a JTabbedPane:
    1.) componentRemoved fires
    2.) stateChanged fires only if there are no tabs to the right of the tab being removed and the index must shift left.
    Problem scenario:
    I have a 5 tabbed JTabbedPane in an extended class with a variable to hold the previously selected tab. The third tab is removed and the 2 tabs to the right shift left. The selectedIndex is no longer pointing to the same pane, and stateChanged doesn't fire in this case. I need to know that this has occurred so that I can properly update the preivously_selected variable and an application state holding object.
    I've tried calling the stateChanged method from the componentRemoved call (which is fired by removeTab()), but by this time the selectedIndex has already changed, so I can't properly test the (JTabbedPane.getSelectedIndex() == JTabbedPane.getTabCount()) condition before calling stateChanged(). I need this information to update the previously_selected index.
    Does anyone know of a better approach than the one I'm using, or is there another listener that would notify me of this change?
    Thanks,
    j64thnotes

    This is how I do it:
    tabbedPane = new JTabbedPane()
         public void remove(int tab)
              super.remove( tab );
              int after = getSelectedIndex();
              //  The selected tab remained the same after this remove, consider
              //  it a state changed
              if (after == tab)
                   fireStateChanged();
    };

Maybe you are looking for

  • A problem with my mifi 2200 need help please

    Hey everyone. I came here to get help with my verizon mifi card that all the sudden after such a great run stops working! I had bought two mifi 2200 cards at the same time about a year ago. All I did was turn them on and was getting Internet connecti

  • I have a iPhone 5 on iOS 6.1.4 but I can use my 3G connection for FaceTime

    Hi I have a iPhone 5 and I have used FaceTime over my 3G connection in the past but all of a sudden when I try to make a FaceTime call while connected to my 3G I just get a blank screen. I have contacted my carrier (vodafone) who advised me that they

  • Javascript while selecting all values in multiselect option of prompt

    Hi, I am getting javascript error while doing following steps. It seems to be a bug in OBIEE. - Create a dashboard prompt, add a column with multiselect option. - Use this dashboard prompt in your report. - Click '...' button to select values for thi

  • Document Management in GRC 10.0 Process Control 10.0

    Hi - Our Company is looking to implement GRC 10.0 Process Control 10.0. We have a bit of a challenge for which document management services to go with . Currently there is no integration between GRC 10.0 and OpenText or Sharepoint. I was wondering wh

  • Linksys WRT1900AC dead after the week-end

    Hello Folks, Strange problem with my WRT1900AC. I've upgraded it to firmware 1.8 last friday. Everything was running fine and smoothly. Since I was away this week-end, I shut down the router friday night. Restarted it this monday morning, Power light