I want to make some checks before calling CreateInsert button

I have data control I added the CreateInsert button
but I need before calling the create comment button action to do some java checks and if this checking return true then the commit will be done but if it return false no save will be done
Edited by: belal on 13/09/2011 04:38 ص

have an actionlistener for you comkti button.. that binds to the maanged bean
<af:commandbutton actionlistener="#{Bean.doCheckAndCommit}">
public void doCheckAndCommit(ActionEvent actionEvent){
if(check){ // if check passed the n commit the code
BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
        OperationBinding op = bc.getOperationBinding("Commit");
        op.execute();
}

Similar Messages

  • HT204380 i have a mac book pro and a i-pad 2. both of the devices have the same apple id and same mailing adress. if i want to make a face-time call from my mac book to i-pad 2. how can i do that?

    i have a mac book pro and a i-pad 2. both of the devices have the same apple id and same mailing adress. if i want to make a face-time call from my mac book to i-pad 2. how can i do that?

    You have to add another email address on one of the two devices that you can use as the "You can be reached for FaceTime at" contact address and then remove/uncheck the Apple ID email address as the contact address on that device. The way you are currently setup is like to trying to call yourself on your on phone - from your own phone.
    Using the iPad as the example go to Settings>FaceTime>You can be reached for FaceTime at>Add another email address. Then add a working email address in the next window. Apple will verify the email. Go to the inbox of that email account, read and respond to Apple's email in order to complete the verification process.
    Go back to Settings>FaceTime>Uncheck the Apple ID email address and make sure that the new email address is checked/selected (you will see it being verified again) and that new email address will be your contact address for the iPad.

  • [svn:fx-trunk] 12432: Added Capabilities. hasAccessibility check before calling Accessibility.updateProperties() in setter methods.

    Revision: 12432
    Revision: 12432
    Author:   [email protected]
    Date:     2009-12-03 06:59:10 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Added Capabilities.hasAccessibility check before calling Accessibility.updateProperties() in setter methods.  This prevents an error on systems that do not support accessibility.
    QE notes: none
    Doc notes: none
    Bugs: (24454
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

  • I want to make some changes in my book after it has been published

    I think I have been quite clear with my intentions with the name of my thread:)
    My books has been published, but I want to add some screencaptures to it. I have the screencaptures, but will I have to wait a few days while Apple checks my updated package, or will they just publish the captures without kepping the book from distribution during their check?

    You don't tell it to read specific lines. You pick out specific columns. Based on your input file one simple way to do this is to use the Read From Spreadsheet File VI to read in your source files. Read the files as string rather than numeric. Chop off the first 15 or 16 lines (up to the start of tabular data) and convert the rest using the Numeric -> String functions to get a 2D array of numbers. You can display the resultant 2D array on the front panel and provide controls (e.g., an array of Booleans) to select which columns to keep. The lines you chopped off at the beginning can be reconstituted into your new header (a 1D array of strings, where each element is a line of your header). You can then use the Write to Spreadsheet File VI to write out your header (feed it the 1D array of strings which are your header lines), and then the new 2D array that constists of only the columns you want.

  • I want to make some video files together asone file.

    I have some video files which record manyhappy days about me.Recently,I want to make them together as one file,so that Ican save them much more easier.Do you have used some video joiner tools?Doesthe boilsoft video joiner for Mac works well?
    Share with me your advice,thanks.

    An easy way of combining movies in QuickTime:
    To combine two movies:
       1. In QuickTime Player, choose Edit > Select All to select the entire contents of the first movie.
       2. Choose Edit > Copy, then open the second movie.
       3. Move the playhead to the point at which you want to insert the movie (usually the very beginning or end of the original movie), and choose Edit > Paste.
       4. Choose File > Save As to name and save the new movie.
    You can continue to add on to the saved movie.

  • How to call a macro(check for unsaved data) before calling refresh button of EPM TAB

    Hi,
    I want to show a popup message for any unsaved data before USER hit the refresh button on EPM tab.
    I write the macro like as below in module
    Function TestForUnsavedChanges()
        If ActiveWorkbook.Saved = False Then
            If MsgBox("There is unsaved data, save the data otherwise u will loose the data. Do You Want to Save the Data ?", vbYesNo, "Warning") = vbYes Then
            bSave = True
            Else
            bSave = False
            Application.Undo
            End If
        End If
    End Function
    so how to execute this macro before Refresh ?
    Thanking in Advance !!

    Hi Nilesh,
    Try to add this macro under Function BEFORE_REFRESH.
    Hope this helps.
    Regards,
    Astha

  • New to Mac. I exported (aka Saved As) a Pages document as a PDF. I want to make some more changes to the original doc but I can't find it on my computer. Did it get replaced by the PDF version?

    See title Bloch for my question

    When you open a Word document in Pages it is converted to a new .pages document and you will be prompted to save it when you close it. That will save it to a .pages file which will then contain all the automatically saved versions from then on.
    You export to a .pdf file, this retains the .pages version but creates a.pdf copy of it.
    I don't know what you mean by "red X'ing" the document unless you mean you are closing it by clicking on the red button at the top left of the window.
    I assume you are using Mac OSX 10.8, not Windows XP, which will auto save for you when you close the document.
    Peter

  • Please help creative cloud installer says it wants to make some changes,

    i put my password in and it won't accept it i just don't know what to do, please can someone help

    Sounds like your operating system asking for your admin username and password so it can write files on your hard drive.
    Not Adobe software asking for your Adobe ID and password.

  • How to make some fields disable mode in BAPI?

    Dear sir,
    I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another one in disable mode)how to do in BAPI?  please explain with example by taking 2 or 3 predefined tables? and in Bapi how to do ranges programs.. please explain with example? is it posiible in bapi to display the output in ALV_GRID method?
    regards
    patil

    Hi Rachu Patil,
    I think there is no posibility to disable fields in import parameter of bapi but you can select optional check box to make the field as an optional field in import parameter. Like wise you cant set range. If you want to set range than declare two variable for low and high.
    Regards,
    Harish

  • How to make some nodes invisible?

    I set up a xml tree with JTree.Now I want to make some nodes invisible like the nodes which the name of the node is "datatype",how can I ?Thank you.

    I don't know if the nodes can be made invisible. But if you make cell renderer then you can evaluate the value before displaying it. If value is like 'datatype', you display (cell renderer displays) nothing as value in the cell.

  • How do you make some pictures in your iphoto library, eyes only protected

    I want to make some of my pictures unviewable except by password or something so they are not accessible to the whole family, for example I bought my wife a present and took a picture of it to send to her dad and brother. She opened iphoto and you guessed it the picture was right there in the library for all to see, surprise ruined. There should be some way to hide some of the library pictures????

    but the originals still show in the main iphoto library and are viewable?
    Gee, I don't know, but here's a thought: if you put them in the second library how about you trash them from the first one?
    If you mean create a second iphoto library
    I do
    then how do I enrypt it that is what I want to do with the main library anyway.
    You don't. Again, you put it on an encrypted dmg or disk image. It's the disk that's encrypted, not the library.
    Regards
    TD

  • I want to make a 3d Jelly animation in Flash, can i?

    Hi there,
    I know that Flash 3D is limited and maybe we need to wait
    till we can have a MAYA/3DS MAX like Output in Flash. But I want to
    make some thing sure.
    I need to make a 3D Jelly like ball, it flies to a wall and
    splatters on the wall creating a "Nickeledeon TV" like 3D image.
    Bubbles pop out of it, and slowly two letters some out of it like
    its bubbling up. I need a great camera view, where the whole
    scenario looks like a movie action sequence.
    Now maybe you have a sequence in your imagination which gives
    you an idea of what i need, so can this be done in Flash CS3/CS4
    (Most favorably without using a 3rd party tool) ?
    The output would be having Lighting, shines, a little
    reflection(say raytrace rendered), camera, texture, and a great
    camera trucking.
    Regards,
    Roshan Kolar

    Try this:
    Draw two squares and create a blend between them. Then apply the 3-D to the blend, like this:
    You'll have to work with the angles and perspective to make it match, but you could start with the setting you used when making the shelves.

  • Sender make some changes to the data

    Hi,
    Could anybody please answer to this question. In file to idoc scenario, the data has been sent from sender(file) to receiver(R/3) . If the customer wants to make some modifications in the data is it possible to update the receiver system.How can it be achieved.
    regards
    Pavan

    hi,
    depends on what you post (on the kind of document):
    if the customer sends you sales orders via file - IDOC
    then you can just open the sales order in R3 and update it...
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Your Music: Make all saved albums available offline button

    I recently emptied my cache etc. After that, I had to download all 35 albums by hand. It would be so much more pleasant if I could download them all with just ONE button ;) ;)

    Hello and welcome to the community!
    Just a few questions before we can give your idea a proper status:
    - Which platform would you like to see this on (Desktop, mobile, etc)
    - When you're talking about albums, do you mean the saved albums in 'Your Music'? So you want a "Make all saved albums available offline" button? Or have you saved those albums as playlist?

  • I want to make sure a check box is selected before allowing a form to be closed.

    I want to make sure that a check box is selected before allowing the form to be closed in X Std.  I have set the field as a required field but want to make sure that whoever fills in the form cannot exit, print or save without first ticking the box.  How do I do this?

    There is no way to prevent those actions. The best you can do is alert the user just before any of those things happen.

Maybe you are looking for

  • Unable to download object schema from Web services administration

    Hi, When I try to download generic/custom schema for Account/Contact/Campaign/Opportunity from Admin->web services administration , I get the following error: Schema file generation for the requested object in Web Services v2.0 is not currently suppo

  • How to get the Text variables in the Columns Headings

    Hi,      My requirement is I need to get data for weekly wise and for the last 10 weeks also. For this purpose I used the restricted KF based on the variables (customer exit) and offset. Also used the text variable for displaying from and to days in

  • Setting video resolution

    Hi everybody. I have an ipod touch 4th generation, 64 GB I wanna know if it's possible to set video resolution of camera. If so, how I can do. If not, what's the default resolution? Thank you in advance Have a nice day

  • Authentication issue getting "UMELoginException"

    Dear Guys, I am facing an authentication issue. The situation is like this, My NT password was about to expire (had 6 more days for expiry). I was able to login till yesterday and all of the sudden today, when I was trying to login, I was not able to

  • IPad Screen Problem...HELP ME!!!

    i was using my iPad today just looking through pictures with friends. i shut it off then when i turned it back on for some reason a whole section of the screen is negative.if your at the home screen the strip is right around the second line of apps.