Why actionlistener not fired?

Dear All,
I have two tables with different data bindings, rendering output in one column as comnadLink component
On both tables comnadLink components has actionlistener binded to one method on backing bean.
For some reason actionListener is not firing for one of the tables. It does not metter which compannent I will use for rendering (table or tree) actionListener never fires when this particualr binding is used.
What could be the reson?

Hi Again,
Below is page definition and actual page source.
Workflow is following:
1. There is page showResult to render some report outcome
2. Page definition has one invokeMethod which accepts parameter resultId and calls remote EJB
3. During workflow resultId is stored by another backing bean in requestScope #{requestScope.resultId} and call forwarded into showResult page
4. Outcome rendered correct by showResult page. Part of the outcome is comandLink component within iterator (or table)
5. Clicking on comandLnk should result in calling method on backing bean but it is not happen. Method is not called.
6. Any other comandLink components out of iterator work correctly.
I tried to use table and ADF component instead of trinidad, but result is the same.
If I replace #{requestScope.resultId} by hardcoded value in page definition , then commandLink works
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.56.60" id="showResultPageDef"
                Package="client.pageDefs">
  <executables>
    <variableIterator id="variables" Refresh="always"/>
    <methodIterator Binds="getResultBytId.result" DataControl="ResultEJB" RangeSize="200"
                    BeanClass="model.entity.Result"
                    id="getResultByIdIterator" Refresh="always" CheckParams="true"/>
  </executables>
  <bindings>
    <methodAction id="getResultById" Action="invokeMethod"
                  MethodName="getResultById" DataControl="ResultEJB"
                  InstanceName="ResultEJB.dataProvider"
                  ReturnName="ResultEJB.methodResults.getResultById_ResultEJB_dataProvider_getResultById_result">
      <NamedData NDName="resultId" NDValue="#{requestScope.resultId}"
                 NDType="java.lang.Object"/>
    </methodAction>
    <tree IterBinding="getResultByIdIterator" id="Result" ChangeEventPolicy="none">
      <nodeDefinition DefName="model.entity.Result" Name="Result0">
        <AttrNames>
          <Item Value="description"/>
          <Item Value="header"/>
          <Item Value="value"/>
        </AttrNames>
        <Accessors>
          <Item Value="resultDetails"/>
        </Accessors>
      </nodeDefinition>
      <nodeDefinition DefName="model.entity.ResultDetails" Name="Result1">
        <AttrNames>
          <Item Value="description"/>
          <Item Value="nextParams"/>
          <Item Value="nextStep"/>
          <Item Value="value"/>
        </AttrNames>
      </nodeDefinition>
    </tree>
  </bindings>
</pageDefinition>Page:
<tr:iterator var="h" rows="0" first="0" value="#{bindings.Result.collectionModel}" id="hiter">
<tr:commandLink text="#{h.value}" id="cl1"
                                        actionListener="#{backing_showResult.proceedDrillDown}" immediate="true"/>
</tr:iterator>Any suggestions?
Thank you.

Similar Messages

  • ActionListener not firing within panelGrid (which is within a dataTable)

    I have a page with several forms on it:
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:form>
    <h:panelGrid>
    ...the actionListener here is firing
    </h:panelGrid>
    </h:form>
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:dataTable value="#{collection}" var="item">
    <h:column>
    <h:form>
    <h:panelGrid>
    ...actionListeners here ARE NOT FIRING!
    </h:panelGrid>
    </h:form>
    </h:column>
    </h:dataTable>
    I've tried many things to get this to work. I've checked spelling at least 10 times. I've put the whole page in a single form. Nothing seems to work. The bean associated with the actionListener is not even being instantiated unless I include a value binding expression in the form somewhere, but even then the listener is still not fired.
    So, please tell me if this is a known bug, or if it should work. I'm using JSF 1.1_1.
    All the data and form fields get displayed correctly, just the actionListeners are not firing. I've tried both methods of triggering an actionListener. Neither work.
    Why doesn't anyone from Sun post here anymore?????

    Could you please copy/paste the whole jsp page?I had to abandon the previous page structure due to time constraints. But, now I am having the same problem on another page, pasted below. In this case, the contactInfoForm.populate actionListeners are not firing:
    <?xml version="1.0" ?>
    <jsp:root version="2.0"
      xmlns:jsp="http://java.sun.com/JSP/Page"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:x="http://java.sun.com/jstl/xml"
      xmlns:fmt="http://java.sun.com/jstl/fmt"
      xmlns:t="http://jakarta.apache.org/struts/tags-tiles"
      xmlns:htm="http://jsftutorials.net/htmLib">
      <f:subview id="content">
        <htm:div styleClass="heading">
          <htm:h2>
             <h:outputFormat value="#{msgs[heading]}">
                <f:param value="#{param.firstName}" />
                <f:param value="#{param.lastName}" />
             </h:outputFormat>
          </htm:h2>
        </htm:div>
        <htm:div styleClass="contentContainer">
        <h:messages/>
        <h:form>
          <h:commandLink id="backToPersons" styleClass="commandLink1" action="section.persons">
             <h:outputText value="#{msgs['persons.common.command.backToPersons']}"/>
          </h:commandLink>
        </h:form>
        <h:form style="padding-top: 10px">
          <h:commandLink id="newContactInfo" styleClass="commandLink1" action="/persons/contactInfo/newContactInfo">
             <h:outputText value="#{msgs['persons.person.contactInfo.list.command.new']}"/>
             <f:param name="personId" value="#{param.personId}"/>
             <f:param name="firstName" value="#{param.firstName}"/>
             <f:param name="lastName" value="#{param.lastName}"/>
          </h:commandLink>
        </h:form>
        <h:form>
           <h:dataTable value="#{contactInfoForm.contactInfoList}" var="contactInfo" cellpadding="5" cellspacing="0" styleClass="dataTable" headerClass="dataTableHeader" rendered="#{contactInfoForm.hasContactInfo}">
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.contactInfoId']}"/>
                </f:facet>
                <htm:center><h:outputText value="#{contactInfo.contactInfoId}" styleClass="dataTableContent"/></htm:center>
              </h:column>
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.description']}"/>
                </f:facet>
                <h:outputText value="#{contactInfo.description}" styleClass="dataTableContent"/>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/viewContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.view']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/editContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.edit']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
           </h:dataTable>
           <h:outputText value="#{msgs['persons.person.contactInfo.list.noRecords']}" styleClass="copy2" rendered="#{not contactInfoForm.hasContactInfo}"/>
        </h:form>
        </htm:div>
      </f:subview>
    </jsp:root>

  • ActionListener not firing

    I am currently working on a web app and problem has come up. I'm hoping someone may know about this. The faces page I have has two command buttons for paging forward/back and two combo boxes that act as filters. The page and the filters are all working properly. However, I can only use the navigation buttons 15 times. For example I can page forward and backward 15 times and on the 16th the actionListener and click event for the command button do not fire off. The page still submits, but I get unpredictable results because I have some navigation logic in the actionListener. I've tried pulling the logic out of the actionListener and placed in the event for the command button and recieved the same results. I'm using WSED 5.1.2 and currently running the application locally off of my computer. If anyone has any ideas I'd appreciate it.
    Thanks

    Jan,
    JDev Main 5153 is 3 nightly builds before production. So the current production is a newer version than the one posted.
    User 453834, can you create a testcase and file a bug ? Its difficult to discuss HA on a public forum without knowing your setup. Make sure the testcase does not involve WebCenter
    Frank

  • Why is validationEvent not fired?(SOS)

    oracle team:
    I use validation on AttributeLevel ,but sometimes it is fired,sometimes not to be fired.
    our business logic is more complex,so i use
    validationListener and validationEvent,but validationEvent is not fired,
    it is a core function programming a user interface I think.
    If its a bug and there is no workaround,
    i can't continue my work.
    please help me !
    null

    use jdeveloper3112,validation_event is fired, all is good!
    null

  • On New Instance computation not firing if user fails authorisation

    Hi there,
    In my Apex 4 application I have:
    - An application-level field
    - An On New Instance computation that computes the above field (no conditions or authorisations set on it)
    - A public page
    - A secure page to which the user I use to log in doesn't have access
    If, after logging in, I go straight to the public page and then to the secure page, I get the error "user not authorised" but the application item is computed.
    However, if I go straight to the secure page after logging in the application I get the error message but item is not computed! (I know that because I am displaying the item in the error page template using the format &F_FIELD.)
    I thought On-New-Instance-Anything should always be executed.. but that does not seem to be the case... Or am I missing something?
    How to fix this? I need the on new instance computation to always execute even if the user fails authorisation.
    Thanks
    Luis

    - If I understand you correctly, you are suggesting to move the application computation into the login page, as a page computation?An assignment statement in a PL/SQL process that runs after the login process could work, but it would be safer to use an application-level computation that fires only after APP_USER is definitely set to the authenticated username. The condition would be something like "if :MY_USER_ID_ITEM is null and :APP_USER not in ('nobody', 'HTMLDB_PUBLIC_USER','APEX_PUBLIC_USER','ANONYMOUS')...". Then your application will work if you decide not to have a login page someday, e.g., if you switch to SSO.
    If the computation point is "after submit", why do I need to worry about "per session"? It will be fired only when the user enter/re-enter the system, right?Yes.
    My logout URL was constructed by page wizard. I don't see any session id there. Should I look anywhere specific?If you still have problems with an on-new instance event not firing after a logout URL results in a new session being created let me know. It may be moot for this case.
    Scott

  • RadioButtonList not firing

    Why checkboxlist selectedindexchanged event firing from within user control in Chrome or Firefox, but radiobuttonlist selectedindexchanged event not firing from chrome or Firefox?

    Hi Ndogs,
    For ASP.NET issue , please reopen a new post on the following forum:
    http://forums.asp.net/
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Index not firing

    i checked the plan table & saw that one index is not firing. My query is like :-
    SELECT ISM.*
    FROM invoice_header IH,
    INVOICE_SIM_MOBILE_DETAIL ISM,
    ppbsnew.ppbs_distributor_master DM,
    retailer_master RM,
         ppbsnew.ppbs_inv_sim_serial ISS
    WHERE ISM.INVOICE_NO = IH.INVOICE_NO -- Not firing(1)
    and ISM.SIM_NO = ISS.SIM_SERIAL_NO --Firing(2)
    AND ih.distributor_code = dm.distributor_code --Firing(3)
    AND ih.RETAILER_CODE = rm.RETAILER_CODE --Firing(4)
    and DM.DISTRIBUTOR_CODE = RM.DISTRIBUTOR_CODE --Firing(5)
    Index specified are as Firing & Not firing. I don't understand why the index(1) is not firing.
    I hope, my question is clear. Please help in solving the doubt.
    Regards.

    Can you post the execution plan?
    Oracle Cost Based Optimizer (CBO) determines whether to use index access or not according to the cost which is the result of selectivity and cardinality of the estimated result set. A full table scan is the optimal access path when you have to read the whole table. Therefore in your case you must find out how many rows will be included in the join for the table for which index is not used.
    From the text of your statement I would estimate that you have to read the whole table INVOICE_SIM_MOBILE_DETAIL and you are joining it to invoice_header and here a hash join with a full table scan would be the optimal method. I assume that each row in INVOICE_SIM_MOBILE_DETAIL belongs to one invoice_header row.
    P.S.: It is a strange way of expressing that index is "fired" when index access is used.

  • Trigger not firing in linux OS

    Hi All:
    Initially i am developed a form using form builder and i deployed this form in Windows OS this is working fine when i am deploying this same form in Linux OS
    that is not working even small trigger also not firing.so here we need to change any initial set up any help please.

    We are developing and deploying our Forms application on Linux, have no problem with the triggers whatsoever - any specific reason why developing on windows when deploying from Linux? otherwise, you have to recompile every time you move the form to the Linux iAS box for deployment (as Tony mentioned).

  • Many threads on application.onDisconnect not firing but seemingly no solution

    I've dug some threads up and included links at the end of this post. Have some more work to do researching it but figured I'd get the ball rolling.
    Essentially one can't depend on application.onDisconnect() firing at the close of a client's browser.  It happens sometimes.  But with some apps, it just doesn't happen at all.  I've watched the FMS management console as I've repeatedly opened and closed a particular app I'm developing.  Connections don't die with each browser close.  The net result is a piling up of connections.  My app has a "connected users" list in it.  It gets packed with multiple connections from the same client.
    Eventually, after 5-10 mins, the connections disappear on their own.  Not good though.  One of the functions in my app lets someone select a user in the list and send a direct chat.  This feature isn't working because disconnections are not registering real time.  Some of the people in the user list are not really there anymore.
    I get the problem in both IE8 and FireFox 3.5.3 on FMS 3.52.  Others have reported the problem in various browsers and FMS versions going way back. Problem's been around for some time.
    This guy has the same problem and a nice description, although he experienced only in IE:
    onDisconnect Errors in Internet Explorer: (http://www.flashnewz.com/ondisconnect-errors-in-internet-explorer/)
    After reading the accounts at the links gathered below, I get the feeling it might not necessarily be an FMS problem alone, but rather some combo of browser, SWFObject implementation, and perhaps particular features used (or not used) in the client ActionScript.  Nobody's seemed to nail down the precise combination though.
    Pretty much a show stopper.  Has anyone developed viable work arounds?
    Thread: onDisconnect() IE7 problem: (http://fmsguru.com/forum/messages.cfm?threadid=EEC6D52A-BAB2-526D-5CD9FF490332B8D8)
    onDisconnect Not Firing in IE6/7 With SWFObject 2: (http://www.flashcomguru.com/index.cfm/2008/8/7/swfobject-problem-ie-fms)
    Do not call onDisconnect when closing browser: (http://www.wowzamedia.com/forums/showthread.php?t=5521)
    BUG -Flash Media Interactive Server 3: (http://www.justskins.com/forums/bug-flash-media-interactive-server-3-a-141282.html)
    onDisconnect Event in FMS 2.0: (http://forums.adobe.com/thread/98366)
    Topic: Detecting ungraceful disconnects? (http://www.flashcomguru.com/forum/forum_posts.asp?TID=2848&PN=0&TPN=2)
    Why Flash Media Server does not call application.onDisconnect handler: (http://stackoverflow.com/questions/359727/why-flash-media-server-does-not-call-application -ondisconnect-handler)

    ////////////////////////////////////////////////////////////////////////////////////client side///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////
    var nc = new NetConnection()
    nc.onStatus = function (o)
    trace(o.code);
    nc.connect("rtmp://YourAccount.rtmphost.com/AppDirectory");
    nc.imHere = function(p_b)
    trace("imHere");
    return (true)
    ////////////////////////////////////////////////////////////////server side///////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////
    load("Delegate.asc");
    application.onConnect = function(p_o)
    this.acceptConnection(p_o);
    p_o.clientIsBad= function()
      trace ("is bad")
      clearInterval(this.resultInt);
      clearInterval(this.checkInt);
      application.disconnect(this);
    p_o.clientIsGood = function()
      trace ("is good")
      clearInterval(this.resultInt);
    p_o.checkValid = function()
      trace("watcha!");
      clearInterval(this.resultInt)
      this.resultInt = setInterval( p_o, "clientIsBad", 2000 );
      this.call("imHere",{onResult:Delegate.create(p_o, this.clientIsGood),onStatus:Delegate.create()} );;
    p_o.checkInt = setInterval( p_o, "checkValid", 120000 );

  • Key-enter trigger not firing

    hi friends,
    i have a trigger on key enter, but it is not firing when i press the enter key,
    why it is not working. i want the trigger to be fired only if the user press Enter key
    thanks
    Kris

    Hi Kris,
    I would suggest you try searching this forum for "KEY-ENTER". You shall be able to find out why it does not fire
    regards,
    teo

  • On Command Link Action is not Firing

    Hi
    I am using JDev Version 11.1.1.6
    I have command link where i wrote a method in bean for Action. And the same command link has the showpopup behaviour
    My assumption was on click of command link Action method fires first then showpopup behaviour fires next.
    But when i click on command link action method is not firing, only showpopup behaviour is firing .
    is it expected behaviour?
    Many Thanks,
    ~Jagadeesh Badri

    Hi Jagadeesh
    Yes, it is an expected behaviour. The documentation about af:showPopUpBehaviour says that:
    The showPopupBehavior tag cancels the client event defined by the triggerType. Canceling the client event will prevent delivery to the server. This is significant for action events raised by command family components because the server-side action listeners will be ignored. All actionListener method bindings and associated action listeners will not be invoked when the triggerType of "action" is used.
    This means that if you use the triggertype of action, then your action method in the link will be ignored. Maybe if you change the triggerType to 'Click' you will get your actionListener triggered and the popup showed.

  • AD Sync failover workflow not firing?

    Hi Everyone,
    We have a sitaution where it doesn't look like the AD Sync failover workflow is firing. We are syncing changes from an AD resource using IDM 7.1.1.14 and have configured the AD Sync Failover as documented in the docs. Everything seems to work fine on normal situations where the gateway would "jump" DC's due to some error. However, it seems that every day at a certain time in the morning (we are still looking at a possible network issue but that is beyond the scope of this), we are getting an error, however the failover workflow is not firing off as this time. Below is the error we are getting.
    Error opening object 'LDAP://OURDC/<GUID=8552ea7638224c448784e4ae44331b19>': ADsOpenObject(): 0X800705B4: , , This operation returned because the timeout period expired.    
    Reported cause   
    com.waveset.util.WavesetException: Error opening object 'LDAP://OURDC/<GUID=8552ea7638224c448784e4ae44331b19>': ADsOpenObject(): 0X800705B4: , , This operation returned because the timeout period expired.   
      com.waveset.util.WavesetException: Error opening object 'LDAP://OURDC/<GUID=8552ea7638224c448784e4ae44331b19>': ADsOpenObject(): 0X800705B4: , , This operation returned because the timeout period expired. 
      at com.waveset.adapter.AgentResourceAdapter.loadUsersFromResponse(AgentResourceAdapter.java:561) 
      at com.waveset.adapter.AgentResourceAdapter.getUsersFromResponse(AgentResourceAdapter.java:654) 
      at com.waveset.adapter.AgentResourceAdapter.getUsersFromResponse(AgentResourceAdapter.java:358) 
      at com.waveset.adapter.AgentResourceAdapter.doGetUser(AgentResourceAdapter.java:705) 
      at com.waveset.adapter.AgentResourceAdapter.getUser(AgentResourceAdapter.java:725) 
      at com.waveset.adapter.ResourceAdapterProxy.getUser(ResourceAdapterProxy.java:906) 
      at com.waveset.provision.FetchContext.doFetch(FetchContext.java:368) 
      at com.waveset.provision.FetchContext.processOp(FetchContext.java:230) 
      at com.waveset.provision.ProvisionThread.run(ProvisionThread.java:107)    I'm not sure why the failover workflow is not firing but I would expect it to in these situtations, or am I wrong in that expectation? This is kind of a dasterdly situation because the sync still fires off but all of the user's information from that AD resource is null, so it tries to push null values around for the user. This is especially bad because we have authoritative roles that push groups to a user if they do not have them. This causes the users groups in AD to be overwritten with the groups we have defined in the roles. We have the role definitions set to merge, but obviously a merge with a null, is the same as an overwrite. Any ideas???

    anyone?

  • Exit for batch no check not fired for Tr MFBF

    hi. experts,
    i'm new to abap.
    i've to check the manually entered BATCH No. entered in Tr. MFBF and accordingly throw a error message for wrong entry on the first screen.
    for this m using the exit SAPLV1ZE and its Function module EXIT_SAPLV01Z_004.
    i've created a project in Tr. CMOD and have assigned this exit. also i've created the include given inside the function module. i've activated all.
    But while i set a breakpoint there and try executing the transaction, the transaction doesnot stop at the specified break-point in debugger and hence the message doesnot get fired.
    Plz help as to why the exit is not fired and why it doesnot stop in the debugger.

    try this XMRM0001 enhance ment in smod for mfbf.
    NB : activate all the things.
    regards
    shiba dutta

  • Partial triggers not Fired on partial submit when invalidate component

    Can somebody tell me why Partial triggers are not Fired on partial submit when invalidate component in the validator. Neither error message next to the component is displayed.
    Does somebody has an idea how can i solve this?
    Thank you very much in advance

    Hi, that is a test case which i have promised you:
    The .jspx page contains two fields , one of which has autosubmit = true; You will see, that when invalidate test field 2 partial triigers on field 1 are not fired neither faces message next
    to the field 2 appears.
    If you add programatically Field 1 and Field 2 partial trigerrs this solve the problem.
    I'm waiting for your response.
    Regards,
    Krasi
    <?xml version='1.0' encoding='windows-1251'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1251"/>
    <title>pprTest</title>
    </afh:head>
    <afh:body>
    <af:form>
    <af:panelLabelAndMessage label="Test Field 1">
    <af:outputText binding="#{testBean.testField1Comp}"
    partialTriggers="testField2"/>
    </af:panelLabelAndMessage>
    <af:inputText label="Test Field 2"
    id="testField2"
    autoSubmit="true"
    binding="#{testBean.testField2Comp}"
    partialTriggers="testField2"
    validator="#{testBean.testField2_validator}" />
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import javax.faces.application.FacesMessage.Severity;
    public class TestBean {
    private CoreOutputText testField1Comp;
    private CoreInputText testField2Comp;
    public TestBean() {
    public void testField2_validator(FacesContext facesContext,
    UIComponent uiComponent, Object value) {
    // If input equals "invalidate" set value of the
    // testField1Comp on "Component is invalid"
    // Invalidate input and add an error message
    if (((String)value).equals("invalidate")) {
    testField1Comp.setValue("Component is invalid");
    invalidateInput( (UIXInput)uiComponent,"TestField2","Test Field 2 is invalid!");
    // If input not equals "invalidate" set value of the
    // the testField1Comp on "Component is valid"
    else{
    testField1Comp.setValue("Component is valid");
    //Dynamic adding of the partial targets , solves the problem
    // with losing of partial triggers
    //AdfFacesContext.getCurrentInstance().addPartialTarget(testField1Comp);
    //AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
    public void setTestField1Comp(CoreOutputText testField1Comp) {
    this.testField1Comp = testField1Comp;
    public CoreOutputText getTestField1Comp() {
    return testField1Comp;
    public void setTestField2Comp(CoreInputText testField2Comp) {
    this.testField2Comp = testField2Comp;
    public CoreInputText getTestField2Comp() {
    return testField2Comp;
    public static void invalidateInput(UIComponent uiComp,String compName, String message) {
    showErrorMessage(uiComp , message);
    if (uiComp instanceof UIXInput){
    ((UIXInput) uiComp).setValid(false);
    public static void showErrorMessage(UIComponent component, String message) {
    showMessage(component, message, FacesMessage.SEVERITY_ERROR);
    private static void showMessage(UIComponent component, String message, Severity severity) {
    String compId = component.getId();
    FacesContext ctx = JSFUtils.getFacesContext();
    FacesMessage facesMessage = new FacesMessage(
    severity, component.getId() , message);
    ctx.addMessage(compId,facesMessage );
    }

  • Kinect is not firing MultiSourceFrameArrived event after some time

    Hi,
    I am using Kinect v2 with EmguCV in my application. I am performing some image processing task on the acquired frame. I noticed that after some time (1-2 minutes) the Kinect is not firing MultiSourceFrameArrived event.
    Below is the snippet of the code-
    public partial class KinectForm : Form
    KinectSensor kinect;
    MultiSourceFrameReader reader;
    CoordinateMapper coordinateMapper;
    public KinectForm()
    kinect = KinectSensor.GetDefault();// Get the connected kinect Sensor
    coordinateMapper = this.kinect.CoordinateMapper;
    reader = kinect.OpenMultiSourceFrameReader(FrameSourceTypes.Color | FrameSourceTypes.Depth);
    kinect.Open();// Start reading the data from kinect
    InitializeComponent();
    private void FrameArrivedDisplayMode(object sender, MultiSourceFrameArrivedEventArgs e)
    var reference = e.FrameReference.AcquireFrame(); // Get a reference to the arrived frame
    ColorFrame colorFrame = reference.ColorFrameReference.AcquireFrame(); // Access color frame
    DepthFrame depthFrame = reference.DepthFrameReference.AcquireFrame(); // Access depth frame
    if (colorFrame != null && depthFrame != null)// Do not proceed, if any frame is expired
    RenderColorPixels(colorFrame);
    RenderDepthPixels(depthFrame);
    // Lots of image processing is being performed here
    if (colorFrame != null) colorFrame.Dispose();
    if (depthFrame != null) depthFrame.Dispose();
    private void KinectForm_FormClosing(object sender, FormClosingEventArgs e)
    if (this.reader != null)
    this.reader.Dispose();
    this.reader = null;
    if (this.kinect != null)
    this.kinect.Close();
    this.kinect = null;
    private void displayModeRadioButton_CheckedChanged(object sender, EventArgs e)
    if (displayModeRadioButton.Checked)
    reader.MultiSourceFrameArrived += FrameArrivedDisplayMode;
    else
    reader.MultiSourceFrameArrived -= FrameArrivedDisplayMode;
    The above code was working earlier, but later on once I added more processing on the data, the event was not fired at all after some point of time.
    I am disposing the frame every time. Why this is happening? How to fix this problem?
    Thanks

    Carmine, Thanks a lot for prodding the references. I am in the process of designing it.
    Meanwhile, since as you said the above code was holding the frame data and disposing the frame after processing it, so I though of changing the style little bit. Please see the code below-
    private void FrameArrivedDisplayMode(object sender, MultiSourceFrameArrivedEventArgs e)
    var reference = e.FrameReference.AcquireFrame(); // Get a reference to the arrived frame
    ColorFrame colorFrame = reference.ColorFrameReference.AcquireFrame(); // Access color frame
    DepthFrame depthFrame = reference.DepthFrameReference.AcquireFrame(); // Access depth frame
    if (colorFrame != null && depthFrame != null) // Do not proceed, if any frame is expired
    ColorFrame.CopyConvertedFrameDataToArray(ColorFramePixels, ColorImageFormat.Bgra);
    depthFrame.CopyFrameDataToArray(DepthFrameData);
    colorFrame.Dispose();
    depthFrame.Dispose();
    //Here I am doing image processing
    Now, this way I am not using some of the frames but it should work, since the frame is disposed earlier.
    But still after some time, the event is not fired out.
    Why? Can you tell me the reason?
    Thanks
    Ravi

Maybe you are looking for