STRUTS and UIX: How to use getCustomMethod in event handler

I am having app module method exposed to a client as my custom method that does something. Then I have a data page (UIX) with a submit button that triggers event handler:
public void onMyEvent(DataActionContext ctx) {
    HttpServletRequest request = ctx.getHttpServletRequest();
    HttpSession session = request.getSession();
    JUCtrlActionBinding method = ctx.getCustomMethod();
    if (method == null) System.out.println("method is null!!!!!!!!!!!");for some reason my method handle is null WHY???
this seems to work when I call my method from findForward() though.

If you use ADF BC, you can override the method create(AttributeList) in the Entity Object implementation class (EmployeesImpl.java).
Use: Menu --> Tools --> Override Methods --> create
In the overridden create method you can assign the next value from a DB sequence (e.g. EMP_SEQ) to the ID attribute:
protected void create(AttributeList nameValuePair) {
// Super
super.create(nameValuePair);
// Id
SequenceImpl s = new SequenceImpl("EMP_SEQ", getDBTransaction());
setEmployeeId(s.getSequenceNumber());
}

Similar Messages

  • How to use multiple Screen Event Handling on JavaFX

    Hi,
    Its appreciate , if any one assist me on Event Handling on JavaFX with multiple scene with single stage.
    Thanks
    Biswajit

    I think is this usefull for you. . .
    http://forums.sun.com/thread.jspa?threadID=5359128&tstart=30
    Regards,
    Rams.

  • How to use the PROGRESS Event?

    Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
    I want to use it to display the prgress of downloading data from a API, its a URL event. But i was told i can do this via a PROGREE Event

    copy and paste the trace output from:
    import flash.events.ProgressEvent;
    //var facebookAPI:String = "https://graph.facebook.com/ginorea1/feed?access_token=277830088900615|2.AQDUBMBocIw_QcqE.3600.1313856000.0-100001000396080|5bXT8Cj0OUxNpr7y NeqTsJfwADg";//
    var facebookAPI:String = "https://graph.facebook.com/100001000396080/statuses?access_token=14563 4995501895|2.AQAKdU4pcsdMmmBO.3600.1313859600.0-100001000396080|7uzAMoRdsg5kXLjc exS5bVaPhag";
    var loader:URLLoader = new URLLoader(new URLRequest(facebookAPI));
    loader.addEventListener(Event.COMPLETE, loadComplete);
    loader.addEventListener(ProgresEvent.PROGRESS,loadProgress);
    function loadProgress(e:ProgressEvent):void
    trace(e.bytesLoaded,e.bytesTotal);
    progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
    function loadComplete(e:Event):void{
    processData(e.target.data);
    function processData(data:String):void
    var facebookFeed:Array = JSON.decode(data).data as Array;
    for (var i:uint, feedCount:uint = 10; i < feedCount; i++)
    var tf2:TextField=new TextField();
    feed1.text = facebookFeed[i].message;
    feed2.text = facebookFeed[2].message;
    feed3.text = facebookFeed[3].message;
    feed4.text = facebookFeed[4].message;
    feed5.text = facebookFeed[5].message;
    feed6.text = facebookFeed[6].message;
    feed7.text = facebookFeed[7].message;
    feed8.text = facebookFeed[8].message;
    feed9.text = facebookFeed[9].message;
    feed10.text = facebookFeed[10].message;
    stop();

  • How i use value signaling Event?

    how i use Value signaling event by labview?
    can you send me example?

    Wiring a value to Value(signaling) is like having a user click a button. Here is an example.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Trigger_Other_Event[2].vi ‏156 KB

  • How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty

    So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
    A Newbie to SSIS.
    I appreciate your review and am hopeful for a reply.
    PSULionRP

    Depends upon what you want to do in the eventhandler. this is what you can do
    Store the result set from the Select to a user variable.
    Pass this user variable to a Script task.
    In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
    Dts.TaskResult = Dts.Results.Failure
    Abhinav http://bishtabhinav.wordpress.com/

  • How do I disable an event handler?

    The file below contains a canvas and a button on the canvas. There are two event handlers, one for the button and one for the canvas. How to I disable the event handler for the canvas when the button is clicked?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                public function init():void{
                    canvas.addEventListener(MouseEvent.CLICK, handleClick)               
                    button.addEventListener(MouseEvent.CLICK, handleButtonClick)
                public function handleClick(e:Event):void{
                    trace("Application clicked")
                public function handleButtonClick(e:Event):void{
                    trace("Button clicked")
            ]]>
        </mx:Script>
        <mx:Canvas  id="canvas" x="108" y="82" width="200" height="200"  backgroundColor="0xff0000">
            <mx:Button  id="button" x="10" y="168" label="Button" mouseChildren="false"/>
        </mx:Canvas>
    </mx:Application>

    u can do this when user clicks on any of the canvas or button, just check it currentTarget and then work with ur functions accordingly

  • How to Struts and Spring in NetBeans using Jboss

    Hi Every One,
    I have a some basic Knowledge in Struts Spring and Hibernate. I already worked in it with Eclipse IDE in WebSphere Server...
    But Now i want to How to Use Struts Spring and Hibernate in NetBeans using JBoss i need that Folder Structure like that Stuffs
    Can Anybody Help Me for this

    Google

  • Just got a new 2.7 and wondered how to use optical out from g5

    i got 2408 motu and wanted to use apples optical ins and outs together 2408 i tried have not even figured out how to get the optical to work bare with me im switching over from protools .So explain the setup on how to use multiple sound cards in logic and if its posible to use apples optical ins and outs thank you

    Ask the Verizon store to exchange your iPhone for a different iPhone 4.
    UPDATE - Sure, try ckuan's solution first.  Then use mine if that fails.
    Message was edited by: sberman

  • OTT use and example .How to use it??

    Hello
    Could anyone write me how to use OTT step by step?
    When I use ott userid=scott/tiger intype=demoin.typ outtype=demoout.typ code=cpp
    hfile=demo.h cppfile=demo.cpp mapfile=RegisterMappings.cpp I get an error:
    Error in OTT stub: invalid parameter
    I can not manage with this problem.
    Could anyone help??
    Where should also files ontype and outtype be (in filesystem) and what should be their amounts?
    I have seen OCCI userguide for OTT but i can not manage with it.
    I can not also find any description for using OTT with an example step by step
    Best regards

    Hello
    Well, when I set up Oracle_Home I can not then connect to my database.
    Could You describe step by step how You use OTT,please?
    I just need an example, a kind of tutorial
    Best regards.
    Marcin
    [email protected]

  • Trying to understand and learn how to use btrfs

    I have been the past days trying to get my head around how btrfs works
    I have been trying tools like mkinitcpio-btrfs (very poorly documented) and now, if i list the subvolumes i have in certain volume (/) i see i have 4 subvolumes that have been created while playing around.
    If i try to delete them with "sudo btrfs subvolume delete __active", for example, I get a "ERROR: Error accessing '__active'
    What am I doing wrong?
    Also, I cannot get the whole idea about the difference between snapshots and subvolumes, i mean, a snapshot should be a directory that saves the changes made on the fs, s, if you want to roll back those changes, you just have to make btrfs "forget" the changes stored in that directory and move along, but I cannot take the idea of the subvolume thing.....
    As btrfs is quite experimental and the wikis are not noob-proof still, I'd appreciate if someone gave me a hand trying to understand these concept...
    For the moment, I'm just using it on a test computer and on a personal laptop with no fear of data loss,.
    Any help is welcome
    Thanks!
    Last edited by jasonwryan (2013-07-19 23:13:27)

    I honestly think it is probably a better idea to not use mkinitpcio-btrfs.  As mentioned above, it is poorly documented, and for me it has never worked right (if at all).  It is an unofficial AUR package, and unfortunately our wiki still seems to give the false impression that using this package is the way to user btrfs with Arch.
    The way I have my system set up is that in subvolid=0 (the root of the btrfs filesystem) I have a rootfs subvolume and a home subvolume (there are others, but these are what primarily make up my system).  So in my fstab, I basically have two nearly identical lines, but one has no subvol specified and is mounted at /, and the other has 'subvol=home' mounted at /home. 
    So in order to make it so that I can change the root filesystem as I please, instead of having the / fstab entry specify the subvolume, I put it in the kernel command line.  That is, I have 'rootflags=subvol=rootfs' in the kernel command line.  So if I want to change it, I simply change the path to one of the snapshots. 
    Just remember that if you are one who likes a custom kernel, it is likely that you will have to have an initamfs no matter what you compile into your kernel.  For one thing, the kernel has no mechanism for scanning for multiple device btrfs filesystems.  But also, I have read that the kernel itself cannot handle the rootflags kernel command line argument.
    Oracle Linux does something interesting with their default setup.  They are not a rolling release, so this probably wouldn't work so well in Arch Linux, but they actually install the root filesystem (I think it is actually done to subvolid=0) and then after installation of the packages, a snapshot of the root filesystem is made, and the system is setup to boot off of that snapshot.  So it is almost like having an overlayfs on openwrt.  There is always a copy of the original system, and and changes that are being made are being done "on top" of the original.  So in the event of an emergency, yo can always get back to the original working state.
    If you put your root filesystem on something other than the root of the btrfs filesystem (which you should, as it makes the whole setup much more flexible), then you should also set up a mountpoint somewhere to give administrator access to the filesystem from subvolid=0.  For example, I have an autofs mountpoint at /var/lib/btrfs-root.   chose that spot because /var/lib is where devtools puts the clean chroot.  So it seemed as reasonable a place as any.
    You should go to the btrfs wiki, and peruse through the stuff there... not our wiki, but the actual btrfs one, as our wiki is pretty sparse.  There is not all that much content there (not like the Arch wiki), but it does cover the features pretty well.  I mean, there is certainly quite a lot for being information on only a single filesystem, but it shouldn't take you too long to get through it.  There are a few links to articles about midway down the front page.  What really gave me a better grasp of getting started with btrfs were the ones titled "How I Got Started with the Btrfs Filesystem for Oracle Linux" and "How I Use the Advanced Capabilities of Btrfs".

  • Struts html:form how to use autocomplete  = "off"

    Hi... I am having a problem when I try to use Autocomplete = "OFF" on my jsp page using struts...
    my question is how to use autocmplete on html:form / text tag? to disable autocomplete!

    The "value" for the checkbox comes from nested content inside the <html:multibox> tag - in this case you are using "item"
    "items" is the complete list of items
    "selectedItems" should be a String[] of all the selected values.
    Each time it adds a checkbox, it compares "item" with its array of "selectedItems".
    If "item" is in there, then the box is populated as "selected" otherwise not.
    Does that explain it?
    Cheers,
    evnafets

  • Sample code to get 1st 5 characters of a field and also how to use help ?

    hi ABAP4 experts,
    We are kind of new at ABAP4. We'd be appreciated if you would provide sample code to get 1st 5 characters of a field and also let us know on how to use ABAP4 help to look for such kind solution that next time we don't have to bother you guys here!
    We will give you reward points!
    Message was edited by: Kevin Smith

    Hi Kevin,
    here is the Example for the offset which you want
    DATA TIME TYPE T VALUE '172545'.
    WRITE TIME.
    WRITE / TIME+2(2).
    CLEAR TIME+2(4).
    WRITE / TIME.
    <u>The output appears as follows:</u>
    172545
    25
    170000
    <i>First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.</i>
    <b>2nd Example:-</b>
    DATA: F1(8) VALUE 'ABCDEFGH',
    F2(8).
    DATA: O TYPE I VALUE 2,
    L TYPE I VALUE 4.
    MOVE F1 TO F2.      WRITE F2.
    MOVE F1+O(L) TO F2.      WRITE / F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    CLEAR F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    MOVE F1O(L) TO F2O(L). WRITE / F2.
    This produces the following output:
    ABCDEFGH
    CDEF
    CDABCD
      ABCD
      CDEF
    First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
    if you want more info
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3294358411d1829f0000e829fbfe/content.htm
    hope this solves your Problem
    Thanks
    Sudheer

  • How can I add new event handler in BC4J event flow in UIX?

    How can I declarativly add extension to existing event handleres in BC4J+UIX page?
    I generate through wizards UIX+BC4J pages and I want extend some actions in eventhandlers section. Can I do it in some way like <event name=".." method=".." class=".."> like in any regular event handlers?

    you can use the <method ..> event handler inside the BC4J event handlers, like:
    <bc4j:findRootAppModule name="EmpAppModule" >
    <bc4j:findViewObject name="CurrentDeptEmpsVO" >
    <method class="myPackage.myClass" method="doOperation"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>

  • How to use Mouse Wheel Events

    Hello Everyone
    I am using Datagrid in my Canvas.
    I use mouse wheel to scroll the datagrid. But in one scroll
    through that wheel make the more than 4 rows to be scroll.
    So Now my requirement is to control the delta value of mouse
    wheel event and how to use that with my datagrid so that i will
    able to scroll one row through mouse wheel scroller.
    Thanks

    please give me some suggestion around it.
    I want to scroll one row of datagrid with per mousewheel
    scroll. I am not getting how to use the scrollMouseWheelMultiplier
    property of the IConfiguration class because i am not able to
    create the object of this class.
    I am using the Flex 3.0 and flash 9 version.
    please help me out around this.

  • Smartforms, how to use control break events

    Please help with this requirement.
    Purchase Docu No.111
    Pur Item No       Mat no       Quantity 
    1                        2356      2000
    2                     1256      2000
    3                     8556      2000
    Purchase Docu No.112
    Pur Item No    Mat no    Quantity 
    1                      9656      2000
    2                      7356      2000
    3                      1356      2000
    Purchase Docu No.113
    Pur Item No    Mat no    Quantity 
    1                      5356      2000
    2                      8356      2000
    This i have to design for the smartform.
    1 header data then its item data.
    like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
    Thanks

    I dont want trigger new page.
    In the same page i want like this
    I have purchase docu data in only 1 internal table.
    So, for every new VBELN, under this i want its corresponding item details.
    I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
    How shold i give condition.??????
    Thanks
    Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM

Maybe you are looking for

  • Re: Submenu NOT Displaying over Text in IE

    Hi Effe909, Do you have an URL or a sample we can look at? --== Kin ==--

  • Can't access iTunes Store

    All I get is a 'connecting to iTunes store and Loading...' screen. When I try to sign up, I get an error saying 'We could not complete your iTunes Store request. A unknown error occurred (-50). There was an error in the iTunes store. Please try again

  • PLEASE HELP! My MacBook Pro doesn't fall asleep

    My MacBook Pro doesn't fall asleep on its own any more. Currently, my Energy saver is set so that the display falls asleep after 1 minute, and the computer itself, after 3 minutes. Even if I don't have any softwares running, or anything else, it doen

  • Bios does not see hard drive

    My hard drive failed, and the bios in my T-40 does not recognize the new hard drive. The new drive works fine in my T-30.  Johnsfo

  • Disappearing Calendar Entries

    Since upgradding to Mountain Lion, I have been having Calendar entries occasionally vanishing or being modified on their own.  The event will go from one with specific times for start/stop to categorized as an all day item.  The calendar category can