Help needed - function Delete of ADF

Hi Experts ADF,

I'm very big thing back to ADF programming (just 3 weeks exp.), I have a requirement to remove the table row. I use jDev 11g. When I press the button delete it should request confirmation YesNo, if she does so I need to delete and validate. Please find my code below:

Command button:

< af:commandToolbarButton actionListener = "#{bindings." Delete.Execute text}"="Remove"binding =" #{backingBeanScope.backing_Home.ctb2} "id ="ctb2">"

< af:showPopupBehavior popupId = "p8" / >

< / af:commandToolbarButton >

Popup:

< af:popup binding = "#{backingBeanScope.backing_Home.p8}" id = "p8" > "

< af:dialog binding = "#{backingBeanScope.backing_Home.d2}" id = "d2" title = 'Do you want to delete selected line?' titleIconSource = 'Remove a line' type = 'yesNoCancel"dialogListener =" # ""

{backingBeanScope.backing_Home.DeleteConfirmation}"/ >}

< / af:popup >

Java class:

public void DeleteConfirmation (DialogEvent dialogEvent) {}

If (dialogEvent.getOutcome ()! = DialogEvent.Outcome.yes) {}

return;

} else {}

try {}

BindingContainer links = getBindings();

String oprb = bindings.getOperationBinding("Delete").toString ();

OperationBinding deleteBinding = bindings.getOperationBinding ("Delete");

OperationBinding commitBinding = bindings.getOperationBinding ("Commit");

Object result = deleteBinding.execute ();

If (! deleteBinding.getErrors () .isEmpty ()) {}

return;

}

Object commitResult = commitBinding.execute ();

If (! commitBinding.getErrors () .isEmpty ()) {}

return;

}

return;

} {} catch (NullPointerException only)

System.out.println ("NullPointerException:" + no);

} catch (Exception ex) {}

System.out.println ("Exception:" + ex);

}

Here, I'm getting nullpointer exception on 'OperationBinding deleteBinding = bindings.getOperationBinding("Delete");'

Please help me solve this problem...

I thank in advance...

Have you added to the page linking actions remove and commit?

Tags: Java

Similar Questions

  • HELP: need to delete all the objects in the DB for EM12c

    Hello
    I'm in an interesting situation where the installation of EM12c failed (out of memory). Memory has been added, but at the same time, I lost the drive where EM12c has been installed, so I can't run the command (and of course there is no backup of that disk).

    $< OMS_HOME > / sysman/admin/emdrep/bin/RepManager < database_host > < repository_database_port > < repository_database_sid > - action dropall - dbUser - dbPassword < repository_database_password > - < repository_database_user > dbRole < repository_database_user_role > - reposName - reposPassword < repository_password > - < repository_name > < middleware_home > mwHome - mwOraHome < middleware_ora_home > - oracleHome < OMS_HOME >

    get rid of the current filing.

    Is there documentation of what I need to remove it from the database, so I can install EM12c again?

    Kind regards
    Andy

    The best way to get e new EM is to clean th House and recreate the database to house the repository of the EM. If there is any old object, tables... etc are left by the former repository in the database then the new installation of EM will complain about this.

    Consult the installation guide for of-install not http://docs.oracle.com/cd/E24628_01/index.htm

  • When you are working in photoshop, a message telling me that I need to delete my "scratch disk" appears. What and how can I do this?

    When you are working in photoshop, a message telling me that I need to delete my "scratch disk" appears. What and how can I do this?

    Hello

    You should check with Support Adobe and their Forums.

    Adobe support
    http://www.Adobe.com/support/

    PhotoShop - Forums
    http://forums.Adobe.com/community/Photoshop

    I hope this helps.

  • I have a break next to my black cloud icon symbol creative. Why and what it means? I need to delete .omb file 1 / 3 starts. Frustrating!

    I have a break next to my black cloud icon symbol creative. Why and what it means? I need to delete .omb file 1 / 3 starts. Frustrating!

    In addition, there is nothing in my OOBE folder. Usually, it rebuilt itself once its content is deleted and I restart the computer.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • HELP ME TO DELETE MY ACCOUNT!

    I tried for so long to cancel my Adobe Creative cloud account and now have an unwanted annual renewal! I'm so angry (as all other customers) because I work hard for the money I earn and I am a student trying to get. I don't want Adobe, I don't use Adobe and I want to cancel my account! I followed all the instructions makes me go round and I can not any customer support as site promises. Help me to delete my account!

    Please contact support via:

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If he continues to not try to use a different browser.

    https://helpx.Adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp

    Concerning

    Stéphane

  • I need to delete old email addresses in the address cache

    I need to delete old addresses of e-mail addresses collected and personal address books. What does not work (final deletion; addresses not back when Thunderbird is opened later): 1) right-click and delete; (2.) to write a new email... address list comes on the right pane on the left... click and remove the address e-mail. (3.) what has been suggested in discussion forums about this EXACT, SPECIFIC... with THUNDERBIRD problem. I'm running the 24.4.0 release version. Once more, how do I permanently delete unwanted messages treats (in an address book, "AutoComplete cache", etc.--pick you). Thank you.

    https://support.Mozilla.org/en-us/questions/993430#answer-553080

  • I need to delete Spamfighter-HOW?

    I need to delete Spamfighter-HOW?

    Learn how to use Google:
    http://www.Google.com/search?q=delete+SPAMfighter&ie=UTF-8

  • I need to delete my account from microsoft outlook expression

    I need to delete my hotmail account outlook

    Outlook Express is an e-mail program with XP.  If you don't want to use it, then you don't have to run it.  Otherwise it is not at all clear what you mean.  If you have a Hotmail issue, then ask here: http://answers.microsoft.com/en-us/windowslive/forum/hotmail

    Steve

  • got a computer of his sister-in-law, need to delete all its files, music, photos, etc. how to do

    need to delete personal files, photos music on used computer, how can I do

    Create a new user account for yourself, then delete user account of your sister-in-law.

  • When you are working in photoshop, a message box appears telling me I need to delete my "scratch disk". What is this and how can I do this?

    When you are working in photoshop, a message box appears telling me I need to delete my "scratch disk". What is this and how can I do this?

    Look in photoshop preferences

  • Please can someone help, need password CNU9497P2C

    I have the same problem and its driving me crazy... I need the BIOS password because I can't access to this

    [number of Series edited by Moderator]

    Please can someone help, need password

    HP MINI CQ10

    Sweb try.

    e9lovox27e

    3rd letter tiny L.

    4th and 6th letter lowercase o.

    Use this code to go into the BIOS.

    Disable all passwords that are enabled.

    If demand for CURRENT password using this code.

    Request NEW password just press ENTER.

    If asked to hit just to CHECK password to enter.

    Save and exit.

    REO

    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.

  • Need to delete all the memory

    I'm selling my laptop, but before I can I need to delete all of my friends out of it. I realized how do it, but now my computer won't turn on. I bought a new battery and a new charger, but the charger does not work, and now I've lost the old one.

    Does anyone have advice? I tried out the battery and now the power for 30 seconds button. Nothing happened.

    Hi jkeppl1,

    You have not provided the model of your laptop, but I guess it is old enough. The general approach in this situation would be to remove the hard drive, put it in an external hard drive enclosure, plug this case into the USB port on another PC and run your utility. Since the laptop does, however, my suggestion would be to simply sell without a hard drive, since even a plu working laptop won't be worth much more that $50 any way, much less one that won't turn on.

    I recently got an Inspiron N5010 without hard drive that wasn't turn on for free. I have solved the problem, install a hard drive $ 15, installed Windows 7 and gave it to a family member. The thing works beautifully.

  • What is optimizer pro? He educated when I restart my computer. Di I need to delete? and how?

    What is optimizer pro? He educated when I restart my computer. Di I need to delete? and how?

    I've tried everything mentioned... and then they gave me this site worked for me

    http://malwaretips.com/blogs/PC-Optimizer-Pro-virus/

    and then I followed other downloads from this site for example ADWCLEANER

    Once he was done, I got scared when my computer had no icons, it was totally empty except for my desktop picture... I hit CTRL/ALT/DEL (all at once)... then disconnected and reconnected and it was fine

  • BlackBerry Smartphones Help: I accidentally deleted my BB 8320 update

    Help I accidentally deleted my Blackberry Curve 8320 to my computer by updating from 4.2 to 4.5

    BlackBerry Desktop Software.

    my blackberry does not open and it may not be recognized more by my loptop when I try to connect it using a usb key.

    * There is a Dungeon of red light on the flashing light at the top right of my BB

    What should I do to fix this?

    Well, if the advice in these other threads did not work, then you may clean and reload via JL_CMDER... see this:

    Good luck!

  • I need to replace a motherboard with a new another brand, what files or drivers that I need to delete not close up with problems starting in windows 7 pro oem

    I need to replace a motherboard with a new another brand, what files or drivers that I need to delete not close up with problems starting in windows 7 pro oem current motherboard works but is old and has problems with heat. Not worried about having to re-record software am just worried starting problems

    Friday, October 19, 2012 19:03:30 + 0000, * address email is removed from the privacy * wrote:

    I need to replace a motherboard with a new another brand, what files or drivers that I need to delete not close up with problems starting in windows 7 pro oem current motherboard works but is old and has problems with heat. Not worried about having to re-record software am just worried starting problems

    Two points:

    1. it is unlikely that your current installation would work if
    you have changed motherboards. You need to reinstall itself.

    2 but you cannot use your current copy of Windows if you change
    motherboards, not even if reinstall you it cleanly. The largest
    disadvantage of an OEM version, is that its license it binds permanently
    the first computer, it is installed on and Microsoft believes that
    If you change the motherboards, another computer. It can never
    legally be moved to another computer, sold or transferred (except with)
    the original computer). If the computer dies or is stolen, your
    license dies with him.

    Ken Blake, Microsoft MVP

Maybe you are looking for

  • Firefox crashing several times per day

    Sometimes, when I am trying to load a page (no matter if I just navigate in a Web site, opening a new tab/window, or by train to load a Web site for the first time) firefox will crash just completely. Here's my last five accidents reports:BP-a36a60c8

  • Re: Need the bluetooth code for mouse PA3573E-1ETB

    Hello I fight this mouse but unfortunately I lost my user manual. My problem is, I fight a new one PC I need bluetooth code to use this mouse. I tried 0000 and 1234, but it does not work.Someone has the manual of this product or code bluetooth help?

  • Satellite 1000 emits 4 times and goes no further

    Anyone know what it means when, after start-up, an S1000 emits 4 times and goes no further. I guess it's a hardware failure, but generally the number of beeps will indicate it has not - that's what I need to know. Thank you

  • Windows XP SP3 on Terminal Server 2008 print

    Hi guys,. Environment Windows Pro SP3 Windows Terminal Server 2008 With the help of Easy Print Error: Windows presentation foundation terminal server print w has encountered Tried solutions: I've updated. NETFramework 3.0 with SP and above versions.

  • What happens to Windows 8.1?

    After the July 10, 10 If Windows Update is not installed or reserved. 8.1 will remain the same? Thank you Ed Chi.