Creating events in mx:component

Hi there,
I am wondering what the dela is with <mx:component>.... Can it see outside the scope of itself? I am trying to access a method in the main file <mx:Script> block, and am getting a "can't find that function..." error.
Any thoughts are greatly appreciated!

You need to use "outerDocument", and ensure the function is public:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    <![CDATA[
      import mx.collections.ArrayCollection;
      import mx.controls.Alert;
      [Bindable] private var ac:ArrayCollection = new ArrayCollection([1,2,3,4,5]);
        public function clickHandler():void{
        Alert.show("here");
    ]]>
  </mx:Script>
    <mx:List dataProvider="{ac}">
      <mx:itemRenderer>
        <mx:Component>
          <mx:Button click="outerDocument.clickHandler()"/>
        </mx:Component>
      </mx:itemRenderer>
    </mx:List>
</mx:Application>
If this post answers your question or helps, please mark it as such.
Greg Lafrance
www.ChikaraDev.com
Flex Development and Support Services

Similar Messages

  • View not copied or enhanced with wizard Error while creating Event Handler method in Z Component

    Hello Friends,
    In one Z Component (Custom Component), in one of the views, while creating event handler, it gave me error message that view not copied or enhanced with wizard.
    I am aware that in Standard Component, if we want to create the event handler method then we need to first Enhance the Component and then we need to enhance the view.
    But, in the Z Component (Custom Component), how to create event handler method in one of the views as while creating event handler method i am getting view not copied or enhanced with wizard error.

    Hi,
    Add a method in views impl class with naming convention eh_on__* with htmt and html_ex parameters.  I dont have have the system right now. Please check any existing event import export parameters.
    Check out do handle event method in the same class.
    Redefine that method.  Call that event method in this handle method. See existing code for reference.
    Attach that event to the button on click event in .htm page.
    Regards,
    Bhushan

  • How do I create event links in the FPM Application Editor?

    I'm am attempting to add a new step to the roadmap of ESS/BEN Benefits Application.  I've created a new VAC component and a corresponding view (using the "self-service administrator" role).
    When using the FPM Application Editor to create a new perspective, I need to add an event link but receive the error, "Either the perspective "Smoker Verify"  has no view assigned to it or none of the view(s) assigned  have any event assigned to them".
    How do I assign events to my new view?  Please assist and thanks in advance.
    -Jeff Karls-

    I see that the events are defined on the views themselves in the portal content.

  • LDAP create event failed : Failed to find orclpwdexpirationdate

    Hi,
    When i try to create a user, i am getting the following error.
    IAM-2050243 : Orchestration process with id 333, failed with error message IAM-3010201 : LDAP create event failed : Failed to find orclpwdexpirationdate in mandatory or optional attribute list..
    Query:
    1. I could create users earlier connecting to the same OID. Is there any change in OID creating this issue?
    2. I could not find this attribute in OID. Is this a default parameter available in OID?
    3. I could not find this attribute in OIM as well (Customer fields for Manage Users) . How can i find this parameter in OIM?
    Any help to resolve this error?
    Complete stack trace is given below:
    [2013-01-28T20:41:41.623+05:30] [oim_server1] [NOTIFICATION] [] [oracle.iam.conf.impl] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 583c10bfdbd326ba:-27ccd12:13c817229bb:-8000-0000000000000521,0] [APP: oim#11.1.2.0.0] The system property with keyword OIM.DiagnosticEnabled does not exist.
    [2013-01-28T20:41:41.630+05:30] [oim_server1] [NOTIFICATION] [] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 583c10bfdbd326ba:-27ccd12:13c817229bb:-8000-0000000000000521,0] [APP: oim#11.1.2.0.0] Orchestration process moved to failed stage, and the corresponding error is - {0}[[
    oracle.iam.platform.kernel.EventFailedException: IAM-3010201:LDAP create event failed : Failed to find orclpwdexpirationdate in mandatory or optional attribute list.:Failed to find orclpwdexpirationdate in mandatory or optional attribute list.
         at oracle.iam.ldapsync.impl.util.LDAPSyncUtil.createEventFailedException(LDAPSyncUtil.java:959)
         at oracle.iam.ldapsync.impl.util.LDAPSyncUtil.createEventFailedException(LDAPSyncUtil.java:975)
         at oracle.iam.ldapsync.impl.eventhandlers.user.UserCreateLDAPHandler.execute(UserCreateLDAPHandler.java:98)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runPreProcessEvents(OrchProcessData.java:970)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runEvents(OrchProcessData.java:706)
         at oracle.iam.platform.kernel.impl.OrchProcessData.executeEvents(OrchProcessData.java:268)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:801)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:550)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:485)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:439)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy252.orchestrate(Unknown Source)
         at oracle.iam.request.impl.RequestEngine.startOrchestrationFromPreProcess(RequestEngine.java:5350)
         at oracle.iam.request.impl.RequestEngine.triggerOperation(RequestEngine.java:5297)
         at oracle.iam.request.impl.RequestEngine.doOperation(RequestEngine.java:5028)
         at oracle.iam.impl.OIMServiceImpl.doOperation(OIMServiceImpl.java:43)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy466.doOperation(Unknown Source)
         at oracle.iam.api.OIMServiceEJB.doOperationx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy465.doOperationx(Unknown Source)
         at oracle.iam.api.OIMService_1soh89_OIMServiceRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.iam.api.OIMService_1soh89_OIMServiceRemoteImpl.doOperationx(Unknown Source)
         at oracle.iam.api.OIMService_1soh89_OIMServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.iam.api.OIMService_1soh89_OIMServiceRemoteImpl_1036_WLStub.doOperationx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy464.doOperationx(Unknown Source)
         at oracle.iam.api.OIMServiceDelegate.doOperation(Unknown Source)
         at oracle.iam.ui.catalog.model.am.CatalogAMImpl.doOperation(CatalogAMImpl.java:1316)
         at oracle.iam.ui.catalog.model.am.CatalogAMImpl.submitCatalog(CatalogAMImpl.java:1697)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:657)
         at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2143)
         at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3114)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBinding(FacesUtils.java:165)
         at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBindingFromActionListener(FacesUtils.java:112)
         at oracle.iam.ui.catalog.view.backing.CartReqBean.submitActionListener(CartReqBean.java:833)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.iam.ui.platform.servletfilter.IdentityContextFilter.doFilter(IdentityContextFilter.java:50)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:164)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:248)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Edited by: user10307811 on Jan 28, 2013 7:28 AM

    Hi,
    U need to create attribute orclpwdexpirationdate and add it to OrclXIDPersonobjec class in OID

  • How do I pass an event up the component hierarchy?

    I have a child component which has a mouse listener and a parent component with a mouse listener. However the child component consumes all the mouse events so the parent doesn't get them.
    Is there a way for a child component to receive mouse events, then decided to pass them back up the component hierarchy so the parent can still receive them too?
    I've spent the last two hours on Google and can't seem to find anything relevant.
    Cheers, Eric

    Unfortunately, you cannot
    override this method since it ispackage-private.
    That was wrong of mine. Package-private members are
    visible to subclasses too (the package access is a
    complete superset of protected access). So you CAN
    override dispatchEventImpl and do your stuff there.
    When I try that the compiler gives me the following warning
    The method SheetElementPlacementComponent.dispatchEventImpl(AWTEvent) does not override the inherited method from Container since it is private to a different package.
    It lets me define the method, but does not let me override it.
    I just wonder why they made dispatchEvent() final,
    when it just calls dispatchEventImpl(), and it is
    not final...
    Another useful method is Component.enableEvents()
    and disableEvents() (which are both protected). You
    can use them to modify the so called event mask of a
    component, which is used to signify which events a
    Component is interested in. Disabled events (= not
    on the event mask) are not delivered to the
    component and the dispatcher skips it, looking for
    parent components which have enabled the event. For
    example, if you have a JButton in a scroll pane and
    you scroll the mouse wheel on the button, the event
    is dispatched to the scroll pane, even though it
    occurs over the surface of the button. That's
    because a button is not interested in mouse wheel
    events.
    You can use that hack the following way: In the
    mouse listener for your child component, after you
    have done your work, disable mouse events for the
    component and then post the event again (invoke
    dispatchEvent(theEvent)). That way, the event should
    be delivered to the closest parent that is
    interested in mouse events. This is done
    synchronously, so after all listeners for the parent
    components have finished, the dispatchEvent() method
    returns in your listener for the child component.
    Then you re-enable mouse events on the child
    component in order to receive the next mouse event.
    I don't know if this works or if it has any side
    effects, but it's worth a try...I can't call dispatchEvent() because it creates an infinite loop resulting in a stack overflow. It tried calling((JComponent) getParent()).dispatchEvent(e); but this does not help either, the parent never gets the event.
    Hope this helps you more :).
    Greets,
    MikeSorry, I still can't find a way around it other than to redesign my UI.
    FYI I created a bug report and Sun have assigned it Bug Id: 6571453. Everyone please vote on this if you think it's a cool feature request.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6571453
    Cheers, Eric

  • Dispatching & listening for custom events from custom component [Flex 4.1]

    I'm giving this a try for the first time and I'm not sure I have the recipe correct!
    I have a custom component - it contains a data grid where I want to double click a row and dispatch an event that a row has been chosen.
    I created a custom event
    package oss
        import flash.events.Event;
        public class PersonChosenEvent extends Event
            public function PersonChosenEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
            // Define static constant.
            public static const PERSON_CHOSEN:String = "personChosen";
            // Define a public variable to hold the state of the enable property.
            public var isEnabled:Boolean;
            // Override the inherited clone() method.
            override public function clone():Event {
                return new PersonChosenEvent(type);
    Then I try to dispatch the event within the component when the datagrid is doubleclicked:
    import oss.PersonChosenEvent
    dispatchEvent(new PersonChosenEvent(PersonChosenEvent.PERSON_CHOSEN, true, false));
    And in the parent application containing the component I do on creationComplete
    addEventListener(PersonChosenEvent.PERSON_CHOSEN,addPersonToList);
    The event does not seem to fire though. And if I try to evaluate the "new PersonChosenEvent(..." code it tells me "no such variable".
    What am I doing wrong?
    (It was so easy in VisualAge for Java, what have we done in the last 10 years?? )
    Martin

    I've done this kind of thing routinely, when I want to add information to the event.  I never code the "clone" method at all.
    Be sure that you are listening to the event on a parent of the dispatching component.
    You can also have the dispatching component listen for the event too, and use trace() to get a debug message.
    I doubt if it has anything to to with "bubbles" since the default is true.
    Sample code
    In a child (BorderContainer)
    dispatchEvent(new ActivationEvent(ActivationEvent.CREATION_COMPLETE,null,window));
    In the container parent (BorderContainer)
    activation.addEventListener(ActivationEvent.CREATION_COMPLETE,activationEvent);
    package components.events
        import components.containers.SemanticWindow;
        import components.triples.SemanticActivation;
        import flash.events.Event;
        public class ActivationEvent extends Event
            public static const LOADED:String = "ActivationEvent: loaded";
            public static const CREATION_COMPLETE:String = "ActivationEvent: creation complete";
            public static const RELOADED:String = "ActivationEvent: reloaded";
            public static const LEFT_SIDE:String = "ActivationEvent: left side";
            public static const RIGHT_SIDE:String = "ActivationEvent: right side";
            private var _activation:SemanticActivation;
            private var _window:SemanticWindow;
            public function ActivationEvent(type:String, activation:SemanticActivation, window:SemanticWindow)
                super(type);
                _activation = activation;
                _window = window
            public function get activation():SemanticActivation {
                return _activation;
            public function get window():SemanticWindow{
                return _window;

  • BUS2001-'created' event not triggering

    Hi experts,
    I have created workflow for project release which is using BUS2001-delegated to zbus2001. im using the " Created" event but which is not trigeering the workflow and i tried checking manually using tcode "SWUE" its triggering. i Dnt know why its triggering while creating project in Tcode:- Cj20n... is there changes need to do in SWEc for standard event..
    regards,
    Roops

    Hi Roop,
    Can you let me know y you have created a subtype and delegated? Bcs according to your scenerio you dont require any custom business object, since you are using standrad event.
    Can you let me how you are triggering this standard event and y you have configured in swec?
    swec is for change documents.
    Please elobarate the question.
    Regards,
    Vijay.

  • BSEG.CREATED event not triggering when a document is posted in FB60

    Hi All,
    I have a requirement in which i need to post documents in FB60/FB65/FB01 tcode. But when i post the document in FB60 the event BSEG.CREATED is not triggering. I could not see any trace in SWEL. But when i park the document in FB60, FIPP.CREATED event is getting triggerd.
    Can anyone tell me why this BSEG.CREATED event is not triggering.
    Thanking you in advance,
    satheesh.

    Hi Viji,
    Thanks for your quick reply.
    We have maintained the required configurations in the system related to this. But still the event BSEG.CREATED is not triggering.
    for this the alternative solution is to implement the BTE '1030'. But our functional team is asking us to check whey standard business object BSEG.CREATED is not triggering when we post a document. So that particular reason we are not able to find out.
    Configuration maintained.
    1) Created a workflow variant and assigned it to particular company code(OBWA and OBWJ).
    2) Checked the 'Posting' release' and 'Release payments' checkboxes in the OBWA transaction.
    3) Event linkage for BSEG is active.(SWETYPV)
    Thanks,
    satheesh

  • Saving photos to the web by creating events. Called the destination folder does not exist.

    Hello,
    I ask you for advice (assistance). A week ago I re-installed the PC and installed to the computer again Photoshop CS5. Everything works for me except for the function of storing images for web by creating events. Called me constantly destination folder does not exist. The problem I had before. I ask you this advice on how to solve this problem.
    Thanks for the advice

    hi,
    i don't know if i integrate your code correctly, but it doens't work for me. I presently create skin for client and this plugin is really usefull for me.
    i use win7 64bit home edition, and photoshop cs5
    there is how i integrate this :
    // EDIT ALEX GRENIER
    function getPreferencesFolder() {
         var userData = Folder.userData;
         if (!userData || !userData.exists) {
              userData = Folder("~");
         var folder = new Folder(userData + "/xtools");
         if (!folder.exists) {
              folder.create();
         return folder;
    function exportChildren(dupObj, orgObj, dupDocRef, folder) {
    if (getCSVersion() >= 10) // CS3 Only
         // Create assets folder in Flex app's directory
         // var tempFolder;
         // tempFolder = new Folder (folder + "/assets/");
         // tempFolder.create();
         // EDIT ALEX GRENIER
         var tempFolder;
         tempFolder = getPreferencesFolder();
    i put the code creating the folder in comment and put your code in place, i also put your function before the function creating file.
    With the base code (without modification) photoshop is able to create my folder assets, but when it try to export the png, it export nothing, so i have a empty folder.
    thank you,
    Alex

  • How can I view my photos in "Events" like in iPhoto? How can I create events?  I have 55,000 photos and 1700 events so the only way I can possibly manage my photos is using events that are one slide in size.

    I have 55,000 images organized into about 1700 events. The only reasonable way to view my library is using events in iPhoto where each event has one image That still leaves 1700 images to sort through but that is a lot easier than 55,000 images.  In the side bar is a folder with "iPhoto Events" but those views still show all of the slides.  How can I create events and view my photos as events as in iPhoto?  Events are critical for large libraries and has been my primary way to sort images.
    Thanks!

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • ICal - problem creating events in Exchange calendar

    Hi All, this is a weird one to describe, so please bear with me...!
    My client is on Snow Leopard at the moment, so does not yet have access to iCloud (upgrading remains an option but he is in no hurry). He is, however, having a confusing time of it using iCal on his Macbook.
    He has linked iCal to his corporate Exchange account, and certainly he can view all the events within his iCal. However, when he creates a new event, it does not get created within the Exchange calendar, but rather in his local calendar, and then gets overlaid, visually, on top of the Exchange calendar. Consequently, this created event does not synchronise with his iPhone, because it is only "known about" on his local MacBook. Sorry if this sounds a little confusing, but do you guys see the problem?
    Another, minor-ish, point is that the new event he creates locally always gets colour coded in a way that he seems to have no control over. Can anyone explain how the colour coding gets determined when a new event is posted?
    To sum up then, he seems only to be able to read events in his Exchange calendar, but cannot add events in a way that they then get synced correctly.
    Paul

    I just barely had this problem.  I restarted the program and it worked.

  • How to get updated and recently created events from google calendar in pl/s

    Hello
    I am able to get Google calendar events using pl/sql..I am receiving huge xml code(if there are more events),want only update and recently created events instead of getting repeated events.please help me in this regard.
    Thanks

    From the Google Calendar API online documentation:
    "Retrieving an event again
    If you want to retrieve an event that you've retrieved before, you can improve efficiency by telling Calendar to send the event only if it has changed since the last time you retrieved it."
    http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html#RetrievingCached

  • Ical cannot create event in month view

    iCal cannot create event in month view. Is this a bug?
    I've tried double clicking in a day as I always did but nothing.

    Ko be,
    Application UI issues are in many cases, caused by a corrupt plist file.
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also read Apple iCal 5 Office Software Review | Macworld for a description of Lion iCal.

  • How to create events in iCal

    I know we can create events (like birthdays, anniversary etc.) from address book and sync it with iCal. What i want to know is how do I create an event (b'day, anniversary etc.) for a person who is not in my address book.

    Greetings,
    Create the event (just like you would any event) and set the repeat to every year and add it to the calendar of your choice:
    Hope that helps.

  • I installed ios 7 in iphone 4 - i am not able to create event in calender ,   icon is not active

    i installed ios 7 in iphone 4 - i am not able to create event in calender ,   icon is not active

    You will have to upgrade your operating system version and possibly your whole computer.  We cannot provide more information easily until we know more about your system.
    Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About This Mac", then "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).
    Apple does tell you about required equipment for the iPhone -- in 8 point medium gray type on a light gray box.   The Store associates kind of automatically assume everybody is running a new model computer and the one I met when we bought our iPhone had never seen a pre-2008 Mac and was somewhat puzzled why anybody would own such an antique.

Maybe you are looking for

  • Website site looks fine in Dreamweaver but...

    So I am creating my own website for the first time and after a bunch of problems, I've ran into one I am unsure of how to fix. ngkevin-art.com/about.html This is how it looks like in Dreamweaver and how I want it to look: http://i.imgur.com/wlOIR.jpg

  • System failed after install essbase client on 11.1.2.3

    I have done a install and config of 11.1.2.3 for essbase and planning after completion I run the diagnostics green light all the way i install the EAS Client Restart the server  and then everything fails Diagnostics Generated on 08/31/2013 00:51 AM V

  • JSF conflict with Sun Java Studio Creator

    I was trying to use JSF but when i was installing Sun Java Studio everything went ok but there was a step saying "Deploying Web Services" that tool a lot of time about 10 minutes. So i cancelled it and the Sun Java Studio Creator was working well the

  • Can I make a button respond to Touch while using Gestures?

    Hi, I've recently discovered I'm unable to use Touch Points and Gestures at the same time on mobile apps. I would rather use Gestures so I'm wondering if anyone can help with making buttons respond to the user when they are touched. Here's what I'm t

  • ITunes migration problem

    i used migration assistant to move files from PC to new iMac.  All the files are on the iMac, but iTunes not recognizing the migrated folder.  i press the option key, open itunes, select the imported folder for itunes library and get this error messa