ActionListener in ADF button

Hi,
I have a button with actionlistener property as "#{bindings.CreateInsert3.execute}". How can i call the same from backingbean? i need this becausei want to set some values before this operation when someone clicks the button.Can someone give me code snippet please..
my bean method {
-- need to
-- execute createinsert
Thanks,
Lakshmi.

       public BindingContainer getBindings() {
        return BindingContext.getCurrent().getCurrentBindingsEntry();
    public String createInsert() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding =
            bindings.getOperationBinding("CreateInsert3");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        return null;
    }

Similar Messages

  • ADF Buttons not appearing correctly

    I've tried researching this problem and from what I've found it has said if we are using JDK version 1.4 and headless = true then we shouldn't have this problem. When running our application some of our ADF buttons will appear correctly and others will not.
    When I look in our
    application-deployments/../temp/adf/images/cache/en/
    directory I can see the images of the buttons that appear correctly, but if I navigate to another page with different buttons I would then expect to see those images being creating in that folder but there are not. If anyone has any insight on this problem it would be a big help. Thanks.

    Nothing leaps to mind that affected downloadable fonts in Firefox 34... but there are hundreds of changes in each version so I can't rule it out.
    Just to go back to basics for a moment...
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • Is sql functions or trigger possible for adf button component

    while developing project using ADF BC and JSF, is possible to invoke sql functions or trigger for an adf button component. plz reply

    For this you define a method in the application module which you expose to the client. Then you can drag this method onto the button. The method is call when you click the button.
    Inside the method you can call pl/sql functions. Read chapter "37.5 Invoking Stored Procedures and Functions" here http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • How to call html page rear adf button

    Hello,
    I've an html page with javascript code and css in adf project. Is it possible to call my html page rear an adf button if yes how?

    af:goLink or af:goButton should do it.

  • Jdeveloper 11.1.1.2.0 with ADF 11g.  add a adf button like ADD(+)

    Hi,
    I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
    I'm display'g view object i.e, i drag some xxxvo1 from datacontrol and drop on jsf with from - i selected ADF form. Now i add a adf button like ADD(+) on top of the panel form.
    here when i fire Add button , i want to add the same set of input text box with label of ADF form i mean the above i have created ADF form.
    like
    ADF FORM
    + --> ADD BUTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    when i fire "+" ADD BUTTON
    + -- > ADD BUTTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    i hope above example give some idea.
    thanks in advace

    See the example code as below. I use the countries table from HR schema.
    <af:table value="#{bindings.CountriesRO1.collectionModel}" var="row"
    rows="#{bindings.CountriesRO1.rangeSize}"
    emptyText="#{bindings.CountriesRO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CountriesRO1.rangeSize}"
    rowBandingInterval="0" id="t1" columnSelection="none"
    rowSelection="none" horizontalGridVisible="false"
    verticalGridVisible="false" contentDelivery="immediate"
    contextMenuSelect="false">
    <af:column sortProperty="CountryId" sortable="false"
    id="c2" >
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    <af:inputText value="#{row.bindings.CountryId.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryId.label}"
    required="#{bindings.CountriesRO1.hints.CountryId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryId.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.CountryId.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.CountryName.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryName.label}"
    required="#{bindings.CountriesRO1.hints.CountryName.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryName.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryName.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryName.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.CountryName.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.RegionId.inputValue}"
    label="#{bindings.CountriesRO1.hints.RegionId.label}"
    required="#{bindings.CountriesRO1.hints.RegionId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.RegionId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.RegionId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.RegionId.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.RegionId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.CountriesRO1.hints.RegionId.format}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:column>
    </af:table>

  • Bind a adf button to an java script function

    hi,
    is there any way to bind a adf button or command link to a java sript function???
    there is no onclick attribute of the object, but i am sure there must be a way to do so??
    plz help me, thx
    hannes

    Hi Hannes
    af:commandlink has an attribute onclick, asociate javascript function to a commandlink button is very simple por example:
    Put this code in your head tag:
    <script type="text/javascript">
    function GP_popupConfirmMsg(msg) {
    document.MM_returnValue = confirm(msg);
    }</script>
    Then your commandLink code:
    <af:commandLink text="Confirm"
    id="commandLink1"
    onclick="GP_popupConfirmMsg('Are you sure?');return document.MM_returnValue"
    action="ok">
    </af:commandLink>
    This are all the javascript events to asociate functions to a af:commandLink:
    * onblur String Yes the event handler for the link losing the focus. This attribute is not supported on the following agent types: pda, phone, voice.
    * onclick String Yes an onclick Javascript handler. ondblclick String Yes an
    * ondblclick Javascript handler.
    * onfocus String Yes the event han dler for the link gaining the focus. This attribute is not supported on the following agent types: pda, phone, voice.
    * onkeydown String Yes an onkeydown Javascript handler.
    * onkeypress String Yes an onkeypress Javascript handler.
    * onkeyup String Yes an onkeyup Javascript handler.
    * onmousedown String Yes an onmousedown Javascript handler.
    * onmousemove String Yes an onmousemove Javascript handler.
    * onmouseout String Yes an onmouseout Javascript handler.
    * onmouseover String Yes an onmouseover Javascript handler.
    * onmouseup String Yes an onmouseup Javascript handler.
    Good Luck

  • Actionlistener - for multiple buttons with similar functionality

    Hi, all:
    I'm working on a calculator program and want to know how to go about making a generic ActionListener for all the functions (i.e. +,-,*,/) so that I don't have to write separate inner classes for each function (i.e. + button, - button, etc.).
    I think this generic class should be created within a method that takes parameters. The parameters are then used within the inner class.
    What I need to know specifically is whether it's possible to pass a string operator symbol (e.g. "+" or "-") as a parameter in the following context:
    class buttonListener implements ActionListener
    public void actionPerformed(ActionEvent e)
    intField1Val + intFieldVal2;
    in this case, the "+" would be the parameter that would change depending on the values provided to the method.
    Can this be done??
    I'd also appreciate any other feedback you can give m,e on this problem (i.e. how to set up the method...basic structure??)
    Thanks!!

    Hi there,
    One way to do this is as follows:
    Button plus = new Button("+");
    Button minus = new Button("-");
    public void actionPerformed(ActionEvent e) {
    String componentHit = e.getActionCommand();
    if (componentHit == "+") {
    doAddMeth(); // implemented elsewhere
    else
    if (componentHit == "-") {
    doSubMeth(); // implemented elsewhere
    ~Bill

  • ADF Button sequence problem

    Hi All,
    I'm working from JDeveloper version 10.1.3.1.0 and ADF Business Components     10.1.3.39.84.
    I currently have a situation where I have three CoreCommandButtons on my page in the sequence Add - Amend - Delete which is all working fine and looks the way i want them to. But when I click on a menu item which refreshes the page, it changes the sequence of the buttons to Amend - Delete - Add.
    They all still work correctly and everything but the order in which they are displayed is changed. I was just wondering if anyone has any similar experience of this happening?
    Thanks,
    Andy

    Hi,
    sounds odd. If you wrap them in a panelButton bar, does this still show?
    Frank

  • Adding actionListener to a button

    pls i want to create an applet with buttons rectangle,circle,and polygon and having a textArea.when someone clicks on the rectangle buttons it draws a rectangle,on the circle buttons it draws a circle and on the polygon button it draws a polygon.pls i have already created the user interface how do i add the actionListeners to the respective buttons and reggister them.

    Hi,
    try something like this:
    JButton jButton1 = new JButton("yourbutton");
    jButton1.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent evt) {
                    someMethodThatDoesWhatYouNeed();
    });this is just a way to do it, there are other ways, just look around in the forum to discover them.
    JoY?TiCk

  • ADF button submits the whole page even on partial submit=true

    my jdev version 11.1.1.5.0
    I hav a jspx page with two input boxes and three select one choice and a clear button
    on clicking the clear button it subimts the whole page and fetches value for select one choice mapped to manage bean everytime even on putting partial subimt=true

    Two years ago I was confused by the same behavior, so I researched the problem to come eventually to the conclusion that everything had been fine and in accordance to the documentation.
    In brief, it is correct behavior a button to submit the whole page even if the button is configured as partialSubmit="true". Please, refer to these articles in the documentation for clarification:
    Using the JSF Lifecycle with ADF Faces - 11g Release 1 (11.1.1.7.0) ("4.3 Using the Opimized Lifecycle")
    Handling Events - 11g Release 1 (11.1.1.7.0) (See topic "5.1.1 Events and PPR" only)
    It is seen from the second article that command components (e.g. a command button, event type "action") are not event roots, which means that the whole enclosing page "boundary" is submitted. If the button is a part of a subform (<af:subform>), a region, a popup or a PanelCollection, then the boundary is the corresponding subform, region, popup or PanelCollection, so only this part of the page is submitted and processed by the optimized lifecycle. However, if the button is not part of such component, then the whole page is submitted and processed by the lifecycle (even if the button is configured as partialSubmit="true"), but only the partial targets of the button will be refreshed on the screen (if the button is configured as partialSubmit="true").
    If you want your button to submit only a part of the page, then the easiest correct way to do that is to surround that part with <af:subform>.
    Dimitar
    P.S. Input and selection components have different PPR behavior from command components. It is seen from the second article above that all the input and selection components are event roots (in contrast to command components!) (see event type "valueChange"), so if some input or selection component is configured as autoSubmit="true", it will not submit the whole page but only itself and the components configured as partial targets of it.

  • ActionListener - specify a Button?

    I have two buttons, how do I specify the event triggered by a certain button?
    For example: In the code below, the click event collects strings from TextFields and places them, formatted in a Text Area - then displays a JOptionPane with a message.
    I wish JButSubmit to collect and write the strings and JButConfirm to display the JOptionPane.
    I have looked at the Jva docs - but can't understand!!
    Advice would be appreciated.
    public void actionPerformed(ActionEvent e){
                   regDateM +=cboMonth.getSelectedItem();
                   regDateD += cboDate.getSelectedItem();
                   regDateY += cboYear.getSelectedItem();
                   regDate = ((regDateM) + " "  + (regDateD) + " " + (regDateY)); // date doubles JuneJune 1st1st 20012001
                        vfName = jtffName.getText();
                        vsName = jtfsName.getText();
                        vstreet = jtfstreet.getText();
                        vcity = jtfcity.getText();
                        vcounty = jtfcounty.getText();
                        vpcode = jtfpcode.getText();
                        vphone = jtfphone.getText();
                        vurl = jtfurl.getText();
                        vName = ((vfName) + " " + (vsName));
                   // Below: declares which strings to write in TextArea
                   TADisplay.setText ((vName) +"\n" + (regDate) +"\n" + (vgender) +"\n" + (vstreet) +"\n" + (vcity) +", " + (vcounty) +"\n" + (vpcode) +"\n" + (vphone) +"\n" + (vurl) +"\n" + (vAer) + " "  +(vFb) + " "  + (vKar) + " "  + (vGym) + " "  + (vHoc) + " "  + (vTen));           
                   JOptionPane.showMessageDialog(
                        null, "Thank you for your application," + "\n" + "It will be processed shortly", "Your Registration:",
                             JOptionPane.PLAIN_MESSAGE );
         }

    Hi mbonfyre,
    It's not great (just quickly slapped it together), but it may be helpful to you.
    Take note of the "actionPerformed()" method.
    Compiled and tested on Windows XP using J2SE SDK 1.4.1_02
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TwoJbtns extends JFrame implements ActionListener {
      private JTextField jtffName = new JTextField(15);
      private JTextField jtfsName = new JTextField(15);
      private JTextField jtfstreet = new JTextField(15);
      private JTextField jtfcity = new JTextField(15);
      private JTextField jtfcounty = new JTextField(15);
      private JTextField jtfpcode = new JTextField(15);
      private JTextField jtfphone = new JTextField(15);
      private JTextField jtfurl = new JTextField(15);
      private JButton JButSubmit = new JButton("Submit");
      private JButton JButConfirm = new JButton("Confirm");
      private JTextArea TADisplay = new JTextArea();
      public TwoJbtns() {
        super("TwoJbtns");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container contentPane = getContentPane();
        contentPane.setLayout(new GridLayout(10,1));
        JLabel firstNameLabel = new JLabel("First name:");
        JPanel firstNamePanel = new JPanel();
        firstNamePanel.add(firstNameLabel);
        firstNamePanel.add(jtffName);
        JLabel surnameLabel = new JLabel("Surname:");
        surnameLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel surnamePanel = new JPanel();
        surnamePanel.add(surnameLabel);
        surnamePanel.add(jtfsName);
        JLabel streetLabel = new JLabel("Street:");
        streetLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel streetPanel = new JPanel();
        streetPanel.add(streetLabel);
        streetPanel.add(jtfstreet);
        JLabel cityLabel = new JLabel("City:");
        cityLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel cityPanel = new JPanel();
        cityPanel.add(cityLabel);
        cityPanel.add(jtfcity);
        JLabel countyLabel = new JLabel("County:");
        countyLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel countyPanel = new JPanel();
        countyPanel.add(countyLabel);
        countyPanel.add(jtfcounty);
        JLabel postCodeLabel = new JLabel("Postcode:");
        postCodeLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel postCodePanel = new JPanel();
        postCodePanel.add(postCodeLabel);
        postCodePanel.add(jtfpcode);
        JLabel phoneLabel = new JLabel("Phone:");
        phoneLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel phonePanel = new JPanel();
        phonePanel.add(phoneLabel);
        phonePanel.add(jtfphone);
        JLabel urlLabel = new JLabel("URL:");
        urlLabel.setPreferredSize(firstNameLabel.getPreferredSize());
        JPanel urlPanel = new JPanel();
        urlPanel.add(urlLabel);
        urlPanel.add(jtfurl);
        JButSubmit.addActionListener(this);
        JButConfirm.addActionListener(this);
        JPanel buttonsPanel = new JPanel();
        buttonsPanel.add(JButSubmit);
        buttonsPanel.add(JButConfirm);
        JScrollPane scrollPane = new JScrollPane(TADisplay);
        contentPane.add(firstNamePanel);
        contentPane.add(surnamePanel);
        contentPane.add(streetPanel);
        contentPane.add(cityPanel);
        contentPane.add(countyPanel);
        contentPane.add(postCodePanel);
        contentPane.add(phonePanel);
        contentPane.add(urlPanel);
        contentPane.add(scrollPane);
        contentPane.add(buttonsPanel);
      public void actionPerformed(ActionEvent actionEvent) {
        Object eventSource = actionEvent.getSource();
        if (eventSource == JButSubmit) {
              TADisplay.setText(jtfsName.getText() + "\n" +
                              jtfstreet.getText() + "\n" +
                              jtfcity.getText() + ", " + jtfpcode.getText() + "\n" +
                              jtfurl.getText());
        else if (eventSource == JButConfirm) {
          JOptionPane.showMessageDialog(null,
                                        "Thank you for your application,\n" +
                                                    "It will be processed shortly",
                                        "Your Registration:",
                                        JOptionPane.PLAIN_MESSAGE);
      public static void main(String[] args) {
        JFrame frame = new TwoJbtns();
        frame.pack();
        frame.setVisible(true);
    }Hope it helps.
    Good Luck,
    Avi.

  • ADF Buttons Handling

    Hi,
    I have an ADF table displayed on my page and 3 buttons (ADD,REMOVE and SUBMIT) associated to this table. I would like to enable the SUBMIT button only when there is a new record added to the table. For eg: If i add 2 records and removed 2 records, i dont want the SUBMIT button to be enabled.
    ** my ADF table is based on an XSD not on the ADF BC.
    How can i achieve this?
    Thanks,
    Lakshmi.

    Lakshmi,
    Check if the app module is dirty and enable / disable the button accordingly.
    Ref : is record changed in ADF BC.
    -Arun

  • ADF Button components: How to disable drag and drop [SOLVED]

    Hi everyone
    I need to develop an application which allows not the user to drag and drop button components. I've converted every single af:commandbutton to h:commandbutton, to prevent this behaviour, but a huge lot of other problems arose from this "solution". I'm using JDeveloper 10.1.3.3.0.4157, and I'm a beginner, so please be patient with me.
    Thanks in advance.

    Maybe I've drifted off-topic with this, but I found the way to achieve this. The only limitation is that the change must be done on the client's computer. The drag and drop feature can be disabled by going to the about:config page in Firefox, and setting nglayout.enable_drag_images to false. It can also be done in a more "portable" way by creating a user.js script in the profile folder and setting it from there. Thank you all for stopping by and reading.

  • Problem to enabled a sumit ADF button by javascript

    hello, i have a form in my jspx page :
    <af:form>
                        <!-- Input fields -->
                        <af:panelForm id="panel" labelWidth="10%">
                             <af:outputFormatted value="Please fill one field only" />
                             <af:objectSpacer width="100" height="20" />
                             <afh:tableLayout borderWidth="0">
                                  <afh:rowLayout halign="right">
                                       <afh:cellFormat>
                                            <af:outputText value="#{bundle.cust_search_id}"
                                                 inlineStyle="font-size: 10pt;" />
                                            <af:objectSpacer width="10" height="20" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:inputText id="custID" columns="10"
                                                 value="#{customerSearch.customerId}"
                                                 disabled="#{!customerSearch.fieldSelected}" />
                                       </afh:cellFormat>
                                       <afh:cellFormat width="10">
                                            <af:selectBooleanRadio group="RadioButtons" id="select_id"
                                                 onclick="fieldSelectionDisplay()" />
                                       </afh:cellFormat>
                                  </afh:rowLayout>
                                  <afh:rowLayout halign="right">
                                       <afh:cellFormat>
                                            <af:outputText value="#{bundle.cust_search_card_number}"
                                                 inlineStyle="font-size: 10pt;" />
                                            <af:objectSpacer width="10" height="20" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:inputText id="cardNumber" columns="10"
                                                 value="#{customerSearch.cardNumber}"
                                                 disabled="#{!customerSearch.fieldSelected}" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:selectBooleanRadio group="RadioButtons" id="select_number"
                                                 onclick="" />
                                       </afh:cellFormat>
                                  </afh:rowLayout>
                                  <afh:rowLayout halign="right">
                                       <afh:cellFormat>
                                            <af:outputText value="#{bundle.cust_search_msid}"
                                                 inlineStyle="font-size: 10pt;" />
                                            <af:objectSpacer width="10" height="20" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:inputText id="msid" columns="10"
                                                 value="#{customerSearch.msid}"
                                                 disabled="#{!customerSearch.fieldSelected}" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:selectBooleanRadio group="RadioButtons" id="select_msid"
                                                 onclick="" />
                                       </afh:cellFormat>
                                  </afh:rowLayout>
                                  <afh:rowLayout halign="right">
                                       <afh:cellFormat>
                                            <af:outputText value="#{bundle.cust_search_identifier_login}"
                                                 inlineStyle="font-size: 10pt;" />
                                            <af:objectSpacer width="10" height="20" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:inputText id="login" columns="10"
                                                 value="#{customerSearch.customerIdentifierLogin}"
                                                 disabled="#{!customerSearch.fieldSelected}" />
                                       </afh:cellFormat>
                                       <afh:cellFormat>
                                            <af:selectBooleanRadio group="RadioButtons" id="select_login"
                                                 onclick="" />
                                       </afh:cellFormat>
                                  </afh:rowLayout>
                             </afh:tableLayout>
                             <af:objectSpacer width="20" height="20" />
                             <af:panelHorizontal>
                                  <af:commandButton text="#{bundle.cust_search_cmdbutton}"
                                       action="#{customerSearch.searchAction}" id="submit"
                                       disabled="#{!customerSearch.fieldSelected}" />
                                  <af:objectSpacer width="20" height="20" />
                                  <af:commandButton
                                       text="#{bundle.cust_search_default_account_cmdbutton}"
                                       action="#{customerSearch.SearchDefaultAccountAction}"
                                       id="submitaccount" disabled="#{!customerSearch.fieldSelected}" />
                                  <af:objectSpacer width="20" height="20" />
                                  <af:commandButton text="#{bundle.cust_search_rstbutton}"
                                       action="#{customerSearch.resetAction}" id="reset" />
                             </af:panelHorizontal>
                             <af:objectSpacer width="100" height="20" />
                        </af:panelForm>
                   </af:form>
    and there is my javascript code of the selectBooleanRadio event on click for to enable the submit button :
    var element_submit=document.getElementById("submit");
              element_submit.disabled=false;
    the the result is that it is not work good, the submit button is not enabled when i click on the selectBooleanRadio
    Please help me to have a solution

    I do not think you will be able to adjust the Master page size as it is tied to the Content Area size as well. I tried to adjust the pageisze and the content size but it was ignored. I can get at the properties to change them but that is it.

  • How to execute commit operation from an ADF button?

    Hi,
    I am using Jdeveloper 11.1.1.3.0. I have an application and need to customize the application by adding a form. I added the Form and I need to do a commit when they press the SAVE button in that page. the action listener for that SAVE button invokes a method and I don't want to change that code because it handles lots of other stuffs. I need to add the commit to the SAVE button. Is it possible to call the ${bindings.commit.execute} in the javascript when they press the SAVE button or using any other listener to invoke a method in the backing bean.
    Thanks
    SR

    You can add the binding to the commit operation to your page and then call this from the backing bean where your current save logic exist.
    See: http://blogs.oracle.com/shay/2010/04/doing_two_declarative_operatio.html

Maybe you are looking for