My action event handler isn't being invoked when I activate a button

The button is of type 'submit' and I have an event handler defined in my Page bean, but it isn't getting called.

Do you have a message group component on your page? There might be a validation or some other error that is preventing the action.

Similar Messages

  • How to pass params to Action Event handler in treeNode?

    Trying to use Tree in portlet I found impossible to determine selected node. (bug # 6354989).
    But I can (despite what is written in manual) use Action Event Handler. It works now (at least, I hope so).
    But I generate tree dynamically and cannot write event handlers for all its nodes. May be there's a way to write one event handler but distinguish node that triggered it? May be by passing additional params to handler?

    The tree component does not work well in portlets. This is a known problem.
    It uses cookies to pass the value of the selected node, but cookies do not work inside of portlets. So, the methods that would normally tell you which node is selected, return nothing. There are also no javascript properties which would allow you to output javascript to store the value somewhere in the page.
    Unfortunately there is no workaround for the bug you mentioned so far so far.
    Rose

  • What is the program object is being created when we activate smartform?

    What is the program object is being created when we activate smartform?

    hi,
    while activate the smart form, a function module is being created.
    by using this function module we can pass the business data to the form.
    in print program we can simply call the function module which has been created by smart form while it activate and pass required parameters to it.
    for more information follow this link.
    http://sap.niraj.tripod.com/id67.html
    regards,
    Ashok Reddy

  • Event Handler is not being triggered- 11G Release2

    Hi all,
    I developed a postprocess event handler which I am expecting to be triggered when my custom task for trusted reconciliation run. I have deployed my event handler using plugin registration utility. I put a static block in my class to see if my class iz being initialized. I see that iti is initialized but event handler is never triggered (execute method is never called). Why it is not triggered? Any help is strongly appreciated... Below is my configuration for the event handler..
    <?xml version='1.0' encoding='utf-8'?>
    <eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel/orchestration-handlers.xsd">
    <action-handler class="com.tcmb.iam.plugin.eventhandler.PostProcessEventHandler"
    entity-type="User"
    operation="ANY"
    name="PostProcessEventHandler"
    stage="postprocess" order="1002"
    sync="TRUE"/>
    </eventhandlers>
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
    <plugin pluginclass=
    "com.tcmb.iam.plugin.eventhandler.PostProcessEventHandler"
    version="1.0"
    name="PostProcessEventHandler">
    </plugin>
    </plugins>
    </oimplugins>
    Tahnaks in advance,
    BR
    ALİYE

    Hi Nayan,
    I have cheked the plugins table and my plugin is in there.Thenchecked mds_paths table I have four records there (I have deployed and undeployed few times) wich are as follow:
    path element name
    http://www.oracle.com/schema/oim/platform/kernel     action-handler
    http://www.oracle.com/schema/oim/platform/kernel     action-handler
    http://xmlns.oracle.com/schema/oim/platform/kernel eventhandlers
    http://www.oracle.com/schema/oim/platform/kernel     eventhandlers
    Which schema is corrent? Is there something wrong with these records that causes my handler to do not trigger ?
    Thanks a lot
    BR
    Aliye

  • Action Event Handler on Tree nodes

    I have an actionListener event handler registered on a tree node as follows:
    <af:tree value="#{bindings.SomeViewObj1.treeModel}" var="node" rowSelection="none" id="t1"
    binding="#{EditFormBean.tree1}" displayRow="selected" summary="Tree"
    partialTriggers=":::cb1 :::cb2">
    <f:facet name="nodeStamp">
    <af:panelGroupLayout id="pgl3">
    <af:outputText value="#{node}" id="ot1"/>
    <af:commandImageLink text="E" id="cil3" partialSubmit="true"
    *actionListener="#{EditFormBean.onEdit}"* binding="#{EditFormBean.cmdImageLink}">
    <af:setPropertyListener from="#{node.hiertType.structureDefName}" type="action"
    to="#{viewScope.formView}"/>
    <f:attribute name="node" value="#{node}"/>
    </af:commandImageLink>
    <af:commandImageLink text="A" id="cil1"/>
    <af:commandImageLink text="D" id="cil2"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:tree>
    I have at each node stamp facet a panelGroup Layout that contains the node value and a command Image link. The tree has two hierarchical levels. When I press the command Image link on the first tree noe level, the actioListener method in teh managed bean (EditFormBean.onEdit) gets called. When I press the same commandImage link on the second tree level, the same action listener does not get called. I need to get past this problem before I code the actionListener which needs to set the current row in the iterator based on the key selected on the tree node. I simply have a print statement in the action listener method which shows something when the first level command image link is clicked but does not print anything when the second level command image link is clicked.
    I am using JDeveloper 11.1.2.1.0
    There is also adf faces code around this snippet that uses an af:switcher facea component to display the appropriate form based on the nodee level in which the comman d image link is clicled but it is irrelevant to the problem I am getting.
    Any help on that would be appreciated

    Hi,
    hard to say . Didn't see this before. Can yoiu remove "binding="#{EditFormBean.cmdImageLink}"" from the command link. The tree stamps its children so that it doesn't make sense to keep a handle to the component instance
    Frank

  • My iPhone isn't being read when plugged into my pc

    Before this occurrence my iPhone was read through iTunes and when manually photos and videos being imported to my pc.
    I plugged another iPhone into my pc and imported photos off it and removed the phone before it synced to my itunes, after that when I plug my iPhone into my pc it can't be read when importing photos and videos manually its being read as the other iPhone I plugged in before but my iPhone is still being read by iTunes.
    When I import the photos they're my photos, with a different iPhone name and I cannot change the image position through photo gallery only manually through paint and I want to know how my iPhone can be read properly again!?

    When I connect it to my iMac (with up-to-date OS X Yosemite 10.9.5) - it doesn't work.
    Specifically - iTunes automatically launches, but then quickly shows a dialog window that says, "iTunes could not connect to the iPhone. This device is no longer connected."
    Meanwhile - on my iPhone - in the upper right-hand corner (where the battery life is displayed) - you can see the "plugged in" icon (lightening bolt) rapidly blinking on and off.
    In other words - it seems like, when it's plugged in - it's rapidly connecting and disconnecting (several times per second).
    If I click "OK" on that dialog window on iTunes - it instantly pops back up, and continues to do so as long as I keep the iPhone plugged in.
    I have tried all and stile did not resolve my problem. I tried to restart both devices, try different cable (I have original cable). Both devices are new and software's are update it on latest versions.
    Thanks in advance for any help!

  • VDCAssistant process automatically being invoked when Flash in use

    I just updated my Flash to the latest version 11.2.202.228 on my 32-bit Mac Book Pro running OS 10.6.8.
    As of this most recent update I found that the VDCAssistant process (the process that normally runs when using Image Capture/Photo Booth) decides to invoke itself whenever Flash is running even though I am not using my I-Sight Camera, nor Photo Booth or the Image Capture program and I have denied any web site from accessing my camera or microphone while running flash.
    As soon as I start using any web site that features Flash on its web page, the Activity Monitor on my computer will show a process for VDCAssistant even though I am not running any program that uses my iSight Camera.
    I went to pogo.com (for example) and the VDCAssistant process loaded.  When I closed the window that had pogo.com on it, the VDCAssistant process eventually disappeared.  The same thing happened with even the adobe.com web site.  It's not a browser type issue because it happens while runing Safari OR Chrome.
    Killing the VDCAssistant process while Flash is running just causes another VDCAssistant process to spawn in its place.
    In addition to this, it seems as if my laptop fan is running more frequently with this new update than normal when I'm on a site that uses flash.
    Has anyone else experienced this problem and is there a way of blocking VDCAssistant from even running because I have no reason to run the built-in camera on this computer?
    Any comments or assistance is appreciated...!

    I haven't had any need to use iSight with any Flash based web sites, it just took me aback when I found the VDC Assistant process running even though it has no need to be.
    My computer fans were running quite often with this new 11.1 upgrade so I decided to see if there were any errant processes running and that's how I came upon the VDCAssistant process in Activity Monitor.  I open a window that uses Flash (like pogo.com) and the VDCAssistant starts running.  I close that window and a few moments later the VDCAssistant process goes away.
    I went ahead and downgraded to a 10.x version and the VDCAssistant process doesn't appear now and also my computer fans aren't running as often as they were while running 11.x.
    It just seems unusual to me that the VDCAssistant would have to load EVERY time when a Flash application is running even though I'm running Flash items that have NOTHING to do with the use of the camera.  I play games over at pogo.com quite frequently and don't know why Flash needs to load up VDCAssistant when NO GAME on pogo.com uses my web cam to play a game.
    Hope you can get this bug fixed soon or at least tell people (and myself) how to keep VDCAssistant from loading so we can get around this issue.

  • User Home Directory not being created when "Create Home Now" button hit...

    This is a cross post, since I was not sure where this should end up since it touches two pieces- Open Directory and User Management. Any help would be appreciated!
    I am running OS X Server 10.5. All of my user accounts have been migrated over along with their home directories. Problem is that when creating new users and then assiging a home directory the system does not actually create the directory.
    Currently all users are setup to have their home directory setup here:
    afp://172.16.110.100/Users/'username'. The Users folder has been setup to automount, and all users that have folders can be accessed without issue.
    The problem is when I create a new user, select the aft://172.16.110.100/Users option and then select "Create Home Now" button and save as it requests... it does not create the directories.
    I have even tried to change the Home patch to make it local to see if it was an network issue, and used the /Users choice and it will not create the directory in that way either- both location go to the same place.
    The system was obviously able to create the local admin account and directory admin account home folders without issue when the system was installed.
    The permissions for the "Users" folder are as follow:
    directory admin = Read and Write
    local admin= Read and Write
    system user (root)= Read and Write
    admin group= Read Only
    everyone group= Read Only
    The system is in production, so any kind of server resets need to be done after 5pm, so I have not been able to reset AFP service.
    Currently the only services running are AFP, SMB and Open Directory.
    All users have their entire home directories located on the server, and login over Directory Access on their clients, so all user accounts are stored on the server. No one is having issues accessing their files or logging in.
    I just can not create new home directories when I create new accounts.

    You do not have to be logged on as the root user to do this. Launch the terminal and type-
    sudo createhomedir -a
    I run an XServe with Tiger server ( 10.4.11) and this has been the workaround I have been using.
    Good luck.

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • Event handling in multi state application

    Hi
    I am developing a flex application. I have a problem with
    event handling. my application has a common header with 4 buttons
    like edit,save,new and cancel. I created a header component with
    these 4 buttons.I attached click events to these buttons but How
    can I handle the events.because if I am in form1 it should go to
    form1 event handler. I have more than 20 forms with this
    header.each form is inside view stack. please give me some
    solution. is there a way to dispatch the event depending on the
    child loaded . thanks

    You might look at the Mate framework. It offers an EventMap
    class that might be quite useful in this situation.
    Link:
    http://mate.asfusion.com/

  • Event handler for a text field

    How do I write an event handler that will be triggered when the value of a text field changes? I assume I can place an event in place of SOME EVENT HERE in the example below.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                private var newVal:Number=1
                public function doThis():void{
                    newVal+=1
                    goal1.text=String(newVal)
                    //goal1.addEventListener(SOME EVENT HERE, textChange)
                public function textChange():void{
                    trace("text changed")
            ]]>
        </mx:Script>
        <mx:Text id="goal1" color="#57782f" fontSize="30" text="1"  x="106" y="110"/>
        <mx:Button x="88" y="169" label="Button" click="doThis()"/>
    </mx:Application>

    "Text" does not dispathc a change event, so use a TextArea tweaked as follows.
    If this post answered your question or helped, please mark it as such.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[           
                private var newVal:Number=1
                public function doThis():void{
                    newVal+=1
                    goal1.text=String(newVal)
                    goal1.addEventListener(Event.CHANGE, textChange)
                public function textChange():void{
                    trace("text changed")
            ]]>
        </mx:Script>
        <mx:TextArea id="goal1" color="#57782f" fontSize="30" text="1"  x="106" y="110"
         focusThickness="0" borderThickness="0" backgroundAlpha="0"/>
        <mx:Button x="88" y="169" label="Button" click="doThis()"/>
    </mx:Application>

  • Is event handling possible with any object?

    can i set a event notification to any object? say for example if i have a multidimensional array of strings can i associate a event handler with it so that when a different application or part of a code changes it's contents i can fire a method?
    consider the scenario
    initially...
    String userId[][]=new String[R][C];
    public MyServer()
            userId[0][0] = "mr00047";
            userId[0][1] = "false";
            userId[1][0] = "dider7";
            userId[1][1] = "false";
            userId[2][0] = "thegreendove";
            userId[2][1] = "false";
    }now at some point the content of the userId array changes
    for(int i=0;i<3;i++)
                    if(temp.equals(MyServer.userId[0]))
    flag=true;
    MyServer.userId[i][1]="true"; // I want to fire a method from this point
    break;
    can any body tell me how can i do it? please help!!!

    This could help you: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Observable.html

  • Event message updates wrong event handler

    EM Gurus.
    I have a Strange problem that I'm trying to debug right now.
    I'm sending an event message to inactivate an event handler.  The event handler is not updated.
    When I look in log SLG1 I see that a different event handler with a different event was updated!!
    I repeat the same process 4 times and each time I look in SLG1 a different Event Handler and Event Message
    can be seen.
    On my 5th attempt my message posts correctly.
    I'm guessing there must be some bad or old data that has the same guid and each time I send a message it clears
    the bad/old data.
    This probably helps explain a similar problem I have seen where the Expected Event Monitor did not update as expected.
    Has anybody else seen this behaviour? 
    Cheers.
    Zenon.

    Problem solved.
    A locally developed Z program was not updating using the event handler tracking id correctly.

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • Javascript embedded in button pl/sql event handler not being executed

    Javascript calls not working from pl/sql button event handler. What am I missing? Are specific settings needed to execute javascript from pl/sql proceedures?
    Example: Want to toggle target='_blank' off and on in a button pl/sql event handler to open url call in new window & then reset when processing submit is done & the app returns to the form.
    portal form button's pl/sql submit handler:
    begin
    htp.p('<script language=JavaScript>') ;
    htp.p('this.form.target="_blank"') ;
    htp.p('</script>') ;
    PORTAL.wwa_app_module.set_target('http://www.oracle.com') ;
    htp.p('<script language=JavaScript>') ;
    htp.p('this.form.target="_blank"') ;
    htp.p('</script>') ;
    end ;
    Putting the following in the button's javascript on_click event handler works great:
    this.form.target='_blank'
    to force opening new window with a call in the button's submit pl/sql code via:
    PORTAL.wwa_app_module.set_target('http://www.oracle.com') ;
    but then the target='_blank' is left on when the submit is done & we return to the form.
    putting the above javascript as a function (called fcn_newpage) elsewhere (e.g., after form opens) & calling in the submit pl/sql with
    htp.p('fcn_newpage') ;
    also doesn't work.
    Metalink thought this was an application issue instead of a bug, so thought I'd see if anyone knows what's going wrong here. (Portal 9.0.4.1)

    thanks for your discussion of my post.
    Please clarify:
    "htp.p('fcn_newwindow') sends a string":
    What would you suggest the proper syntax for a function fcn_newwindow() call from a pl/sql javascript block that differs from
    htp.p('<script language="Javascript">') ;
    htp.p('fcn_newwindow');
    htp.p('</script>');
    or more simply
    htp.p('fcn_newwindow') ;
    More generally, what I'm trying to figure out is under what conditions javascript is executed, if ever, in the pl/sql of a button (either the submit or custom event handler, depending on the button).
    I've seen lots of posts asking how to do a simple htp.p('alert("THIS IS TROUBLE")') ; in a pl/sql event handler for a button on a form, but no description of how this can be done successfully.
    In addition to alerts, in my case, I'd like to call a javascript fcn from a pl/sql event handle that would pass a URL (e.g., http://www.oracle.com) where the javascript fcn executed
    window.open(URL). The API call to set_target(URL) in pl/sql has no ability to open in a new window, so calling that is inadequate to my needs and I must resort to javascript.
    Its clear in the PL/SQL of a button, you can effect form components since p_session..set_target & p_session.get_target set or get the contents of form components.
    So to see if javascript ever works, I tried to focus on something simple that only had to set what amounts to an enviromental variable when we returned to the form after a post. I chose to try to change the html value of TARGET from javascript in the PL/SQL button because it doesn't need to be implemented until we finish the post and return to the form.
    So I focused on a hack, setting this.form.TARGET='_blank' in the on_click event handler that forced every subsequent URL call or refresh of the form to be a new window. I then wanted to turn off opening new windows once I'd opened the URL call in a new window by setting TARGET='' in the portal form. I can achieve what I want by coding this.form.TARGET='' in the javascript (on_focus, on_change, or on_mousedown, ...) of every form component that might refresh the form. However, that is a ridiculous hack when a simple htp.p('<script>') ; htp.p('this.form.target=""') ; htp.p('</script>') ; at the end of the button's pl/sql event handle should do the same thing reliably if javascript ever works in the pl/sql event handler.
    If we didn't have access to form components through p_session calls, I'd assume it was a scope issue (what is available from the pl/sql event handler). But unless my syntax is just off, when, if ever, can javascript be used in a portal form's pl/sql event handler for a button?
    if I code a javascript funtion in the forms' pl/sql before displaying form:
    htp.p('<script language="JavaScript">') ;
    htp.p('function fcn_new_window(URL)') ;
    htp.p('window.open(URL)' ) ;
    htp.p('</script>') ;
    the function can be called from a button's on_click javascript event handler:
    fcn_new_window('http://www.oracle.com')
    but from the same button's pl/sql submit event handler this call doesn't work: htp.p('fcn_new_window("http://www.oracle.com")')
    So my questions remain: Is there other syntax I need, or does javascript ever work properly from the pl/sql of a form button's event handler? If it doesn't work, isn't this a bug that should be fixed by Oracle?
    I can probably figure out hacks to make things work the way I need, but executing javascript from pl/sql event handlers seems to be the expected way to affect portal html pages (forms, reports, ...) and it seems not to work as expected. I don't feel I should have to implement hacks for something as simple as calling a javascript function from pl/sql when almost every example I've found in metalink or the forums or Oracle Press's "portal bible" suggests using javascript from pl/sql via the utility htp.p() to effect web page components in portal.
    My TAR on the subject, while still open, returned the result basically: "We can reproduce your situation. Everything looks okay to us, but we can't explain how to use javascript where you want or point you to any documentation that would solve your problem or expain why it should not work the way you want it to. We don't feel its a technical issue. Why don't you post the problem on the portal applications forum."
    I'm hoping I'm just missing something fundamental and everything will work if I implement it a little differently. So if anyone sees my error, please let me know.
    by the way, not sure this is germain, but in reference to your comment:
    "redirections in pl/sql procedures give a peculiar result. in a pl/sql procedure, usually, portals give the last redirection statement and ignore anything else coming after it."
    if I try to raise an alert:
    htp.p('alert("you screwed up")');
    return;
    in a pl/sql event handler, it still doesn't raise the alert, even though its the last thing implemented in the event handler. But if I set the value of a text box using p_session..set_value_as_string() at the same spot, it correctly sets the text box value when I return to the form.

Maybe you are looking for

  • Itunes doesn't open after monolingual use, any further ideas?

    I installed Monolanguage and now iTunes doesn's open any more. tried everything mentioned here and in other forums. I'm using Mac OS X 10.6.8 on a MacBook Pro. I uninstalled Monolanguage I uninstalled and reinstalled Flip4Mac I deleted te TLSC file I

  • Iphone 5 (6.1.3 and 6.1.4) locked after talk screen and button

    Have you Iphone 5 ? if you have iphone 5 (6.1.3. or 6.1.4). you can try.first close the screen (locked) after open the camera, call to the iphone5 other phone. switch on after switch off. you'll see. Screen and button loced.not available in any way.

  • Can I transfer music from Windows Media player to my Sony reader? How do I do that?

    Can I transfer music from Windows Media player to my Sony reader? How do I do that? I have an extense music library and would like to be able to listen to my favorites in the reader when I am using it. My computer is a Dell Studio 435 and uses Window

  • Transfer artwork to mp3 file

    Hi. Is it possible to transfer (copy) the artwork directly into the mp3 file instead of keeping the artwork inside the iTunes library? Thanks

  • Code Inspector & ABAP UNIT Testclasses

    Hallo all, I am currently trying to implement automated checks using the code inspector. I especially want to see if all our developers use our naming conventions. Also, we use ABAP Unit tests. Unfortunately, the generated test classes are not compli