Question related to JButton action event

Hi All,
In my application a small issue has poppedup i.e. i am giving a JButton with an action and with that action a .bat file is getting generated and immediately i am making it to get executed by using the runtime class.Now my question is if i keep on firing the same button for 20 times same batch file is getting executed for 20 times.SO i want to control that process something like once the execution is done i need to have an acknowledgement so that i will be getting a chance to fire in the next.
After first click on the JButton second click should not process anything till the first execution is done.
How is it possoible to implement this??
Any help appreciated.
regards,
Viswanadh

Hi Camic and Andre,
Thanks for the replies i will try out in both the ways and get back to you people.
And camic as you were saying to go through Process class i have seen and immediately got a question.When i disable the JButton is it a right way that me getting the exitValue of the Process soemthing like
Process p;
if ( p.exitValue()==0){
JButton.setEnabled(true) /enabling button
}Is this the right way to do???
regards,
Viswanadh

Similar Messages

  • Missing some JButton action events

    I have a GUI with multiple windows and a number of buttons and a JTable and various other things (a nontrivial application). Some button presses (perhaps 10% of the time) appear to be recognized by the OS (Windows XP) because the button color changes briefly, yet no ActionEvent is delivered to my actionPerformed() handler. Things work properly the other 90% of the time.
    This has occurred with Java 1.4 and 1.5.
    Any ideas why some of the events are getting lost?

    For debug, the first thing I do in actionPerformed is "Toolkit.getDefaultToolkit().beep()", so that I know when an event is generated.
    No uncaught exceptions show up on the console, and all of my exception handling-code would also print something, so exceptions are not occurring.

  • How do I retain Jbutton text for action event & set img icon on Jbutton

    I need to retain the text on my button as I use this to identify the action event in actionPerformed method when the button is pressed.
    Hoe do I add an image icon to the Jbutton without effecting this?
    [/b]
    class CalcPanel extends JPanel
        implements ActionListener, CurrencyVals
    //currency panel data members
        JButton[] cb = new JButton[4];
    JPanel cbkeys = new JPanel(new GridLayout(4,1));
    //Toolkit tk = Toolkit.getDefaultToolkit();
        //Image img = tk.getImage("D:/temp/ausflag.jpg");
    public CalcPanel(){
    ImageIcon b = new ImageIcon("D:/temp/ausflag.jpg","AUS");
        cb[AUS]= new JButton(b);  //cb[AUS]= new JButton("AUS");
          cbkeys.add(cb[AUS]);
          cb[AUS].addActionListener(this);
    setLayout(new BorderLayout());
        add(display, BorderLayout.NORTH);
        add(keys, BorderLayout.CENTER);
        add(cbkeys, BorderLayout.EAST);
        add(label, BorderLayout.SOUTH);
        public void actionPerformed(ActionEvent evt){
          Object source = evt.getSource();
          int id;
          if (keyBoard) {
            if (source instanceof JButton) {
              String s = ((JButton)source).getText();
    [/b]Regards
    Synfield

    if(keyBoard) { ??! [/b]... do have cause to feel flattered?
    Copy and paste this and save a small eg;- 25px high x 50px wide Jpeg image in the same file and call it "new.jpg", then study it, this posted program (again?) to see where your code went astray.
    THEN, figure out what you want to do with your code ...keep at it!
    Sue x
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ButtonIcon extends JFrame implements ActionListener {
    String []str ={"abc","def","ghi","jkl","mno","pqr","st","uvw"};
    JButton b[] = new JButton[str.length];
       JButton on = new JButton("ON");
       JButton off = new JButton("OFF");
       JButton picture;
       JPanel panel;
       String str2="";
       Font font = new Font("Comic Sans MS" ,0, 14);
       boolean keyBoard;
       ImageIcon icon = new ImageIcon("new.jpg");
    public ButtonIcon(){
       Container c = getContentPane();
       panel = new JPanel();
       panel.setLayout(new FlowLayout());
       picture = new JButton(icon);
       for (int j=0; j<=str.length-1; j++){
             b[j]= new JButton(str[j]);
             b[j].setFont(font);
             panel.add(b[j]);
             b[j].addActionListener(this);
       on.addActionListener(this);
       off.addActionListener(this);
       panel.add(on);
       panel.add(off);
       panel.add(picture);
       c.add(panel);
       public void paint (Graphics g) {
          super.paint (g);
          Graphics2D G = (Graphics2D) g;
          G.setColor(Color.red);
          G.setFont(font);
          G.drawString(str2, 25, 150);
    public void actionPerformed(ActionEvent evt){
        String command = evt.getActionCommand();
        if (keyBoard) {
           if (evt.getSource() instanceof JButton ) {
               str2 += command;
           if (evt.getActionCommand().equals("OFF")) str2 = "";
        if(command.equals("ON")) keyBoard = true;
        if(command.equals("OFF")) keyBoard = false;
    repaint();
    public static void main (String []args){
       ButtonIcon boo = new ButtonIcon();
       boo.setSize(300,200);
       boo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
       boo.setVisible(true);

  • Question related to PO Event Handler

    Hi Experts
    I am facing issues related to PO Header Event Handler:
    1. When I make change to Statistical Delivery Date under Delivery Schedule tab in ECC, The PO Header EH is getting deleted in EM. May I know the reason behind this? Please suggest how to avoid this.
    2. When I am deleting one of PO Items, the PO Header EH is also getting deleted in EM. When I undelete the PO Item, my PO Item EH is active again but PO Header Eh is still in deleted status. Please suggest how to correct this.
    I really appreciate your quick answers to this.
    Regards
    Ravi

    Hi Steffen
    When we tried to analyse through debugging, for the first issue, we found that the standard application tables PURCHASE_ORDER_HEADER_NEW and PURCHASE_ORDER_HEADER_OLD delivered by SAP for BPT ESC_PURORD, are not having the value D for DeleteVal. column. When we have put this manually for testing purpose, the issues are resolved. But we do not know the impact of putting this value here as standard SAP did not deliver it that way.
    When we observed tables of other BPT, this value D is there. Please throw some light on this before we go ahead and make changes.
    Thanks
    Ravi

  • Please help me with some action event buttons

    {color:#ff6600}i am trying to figure out how to capture two values from an action event button. i have already tried it 6 times and i cant figure it out.
    Its a simple calculator with numbers 1 and 2 and does a multiplication calculation.
    Can you help me figure it out it will be really helpful.
    {color}
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    public class Calculator implements ActionListener {
    JFrame frame;
    JPanel contentpane;
    JButton one,two;
    JTextField field;
    JButton mult;
    JButton adds;
    JButton equals;
    JButton go;
    public Calculator() {
    frame = new JFrame ("Calculator" );
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    contentpane = new JPanel();
    contentpane.setBorder(BorderFactory.createEmptyBorder(20,20,40,40));
    one = new JButton( Integer.toString(1));
    one.setActionCommand(Integer.toString(1));
    one.addActionListener(this);
    contentpane.add(one);
    two = new JButton(Integer.toString(2));
    two.setActionCommand(Integer.toString(2));
    two.addActionListener(this);
    contentpane.add(two);
    field = new JTextField(10 );
    contentpane.add(field);
    go = new JButton("calculate");
    go.setActionCommand("go");
    go.addActionListener(this);
    contentpane.add(go);
    mult = new JButton( "*");
    mult.setActionCommand("mult");
    mult.addActionListener(this);
    contentpane.add(mult);
    adds = new JButton( "+");
    adds.setActionCommand("add");
    contentpane.add(adds);
    frame.setContentPane(contentpane);
    frame.pack();
    frame.setVisible(true);
    public void actionPerformed (ActionEvent event ) {
    String eventn = event.getActionCommand();
    String text = field.getText();
    String mult ="*";
    {color:#800080}if (eventn.equals("1")||eventn.equals("2") ){  \\ *{color:#ff6600}i dont know how to store two different value from an action event{color}*
    text+=eventn ;
    int num = Integer.parseInt(text);
    field.setText(text);
    {color}
    {color:#800080}if (eventn.equalsIgnoreCase("mult")){
    field.setText("");
    {color}
    {color:#800080}};
    {color}
    public static void runGui(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    Calculator r = new Calculator();
    public static void main (String[]args){
    javax.swing.SwingUtilities.invokeLater(new Runnable(){
    public void run(){
    runGui();

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ListenerDemo {
        private class DigitListener implements ActionListener {
           private int digit;
           public DigitListener(int digit) {
               this.digit = digit;
           public void actionPerformed(ActionEvent evt) {
                JOptionPane.showMessageDialog(f, "You pressed " + digit);
        private JFrame f = new JFrame();
        private JButton button1 = new JButton("1");
        private JButton button2 = new JButton("2");
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new ListenerDemo().go();
        void go() {
            button1.addActionListener(new DigitListener(1));
            button2.addActionListener(new DigitListener(2));
            JPanel cp = new JPanel();
            cp.add(button1);
            cp.add(button2);
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • ********  Need to add any button activated ACTION EVENT***********

    Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
    PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
    Thank you all,
    ********************** Bruce's Code*****************************
    import java.awt.*;
    public class TimeEntryForm extends Panel
    private Panel tallPanel = new Panel();
    private Panel tallPanel2= new Panel();
    public TimeEntryForm()
    tallPanel.setLayout(new GridLayout(3, 1));
    tallPanel.add(new Label("Hrs Total"));
    tallPanel.add(new Label("Any"));
    tallPanel.add(new Label("One"));
    tallPanel2.setLayout(new GridLayout(3,1));
    tallPanel2.add(new Label("Personal Leave "));
    tallPanel2.add(new Label("Hrs Total "));
    tallPanel2.add(new Label("Pay Calc "));
    setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0; c.gridy = 2;
    add(new Label("Social Security # "), c);
    c.gridx = 1; c.gridy = 0;
    add(new Label("TIME ENTRY FORM"), c);
    c.gridx = 1;c.gridy = 1;
    add(new Label("Enter Date Here "), c);
    c.gridx = 3;c.gridy = 2;
    add(new Label("Employee Name "), c);
    c.gridx = 3;c.gridy = 4;
    add(new Label("Sick Time "), c);
    c.gridx = 0; c.gridy = 3;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 4;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 5;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 6;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 7;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 8;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 9;
    add(tallPanel2, c);
    c.gridx = 1;c.gridy = 11; //note, sets y
    add(new Label("Hrs Worked Today "), c);
    c.gridx = 1;c.gridy = 12;
    add(new Label("Pay Earned Today "), c);
    c.gridx = 2;
    add(tallPanel2, c);
    public static void main(String args[])
    Frame f = new Frame("Time Entry Form");
    f.add(new TimeEntryForm());
    f.pack();
    f.setVisible(true);
    }

    Hi java-luv,
    I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class TimeEntryForm extends Panel
    private Panel tallPanel = new Panel();
    private Panel tallPanel2 = new Panel();
    private JButton jButton1 = new JButton();
    public TimeEntryForm() {
    tallPanel.setLayout(new GridLayout(3, 1));
    tallPanel.add(new Label("Hrs Total"));
    tallPanel.add(new Label("Any"));
    tallPanel.add(new Label("One"));
    tallPanel2.setLayout(new GridLayout(3, 1));
    tallPanel2.add(new Label("Personal Leave "));
    tallPanel2.add(new Label("Hrs Total "));
    tallPanel2.add(new Label("Pay Calc "));
    setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = 2;
    add(new Label("Social Security # "), c);
    c.gridx = 1;
    c.gridy = 0;
    add(new Label("TIME ENTRY FORM"), c);
    c.gridx = 1;
    c.gridy = 1;
    add(new Label("Enter Date Here "), c);
    c.gridx = 3;
    c.gridy = 2;
    add(new Label("Employee Name "), c);
    c.gridx = 3;
    c.gridy = 4;
    add(new Label("Sick Time "), c);
    c.gridx = 0;
    c.gridy = 3;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 4;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 5;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 6;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 7;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 8;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 9;
    add(tallPanel2, c);
    c.gridx = 1;
    c.gridy = 11; //note, sets y
    add(new Label("Hrs Worked Today "), c);
    c.gridx = 1;
    c.gridy = 12;
    add(new Label("Pay Earned Today "), c);
    c.gridx = 2;
    add(tallPanel2, c);
    jbInit();
    public static void main(String args[]) {
    Frame f = new Frame("Time Entry Form");
    f.add(new TimeEntryForm());
    f.pack();
    f.setVisible(true);
    private void jbInit() {
    jButton1.setText("Exit");
    jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
    this.add(jButton1, null);
    void jButton1_actionPerformed(ActionEvent e) {
    System.exit(0);
    class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
    TimeEntryForm adaptee;
    TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);

  • Using a method of a class within an action event

    Good day.
    A beginner question.
    It is possible to use within an action event (triggered by a view of the button)
    instantiate a class from another java project and use a method?
    If it is possible how to do?
    Thank you

    hi carlos,
    yes it is possible. as a reference please have a look at this document How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3
    basically the steps are the same (adding dependency, public parts, etc.) for a ejb or java project.
    regards,
    christian

  • Adding action events

    Whenever i used to add action event, i used to do it like:
    submitJButton.addActionListener(
             new ActionListener() // anonymous inner class
                // event handler called when startJButton is pressed
                public void actionPerformed( ActionEvent event1 )
                   submitJButtonActionPerformed( event1 );
             } // end anonymous inner class
          ); // end call to addActionListenerHow can i add action events to these two buttons though?
        private JPanel createButtonPanel() {
              JPanel panel = new JPanel();
              JPanel temp = new JPanel(new GridLayout(1,2, 5,5));
              temp.add(new JButton("REGISTER"), BorderLayout.LINE_START);
              temp.setPreferredSize(new Dimension(200, 40));
              temp.add(new JButton("LOGIN"), BorderLayout.LINE_END);
              temp.setPreferredSize(new Dimension(200, 40));
              panel.add(temp);
              return panel;
         }

    That works really well. Now for the register button, how would i get this register class to display?
    package layout;
    import javax.swing.*;
    import java.awt.*;
    public class Register {
        private static void createAndShowGUI() {
         String[] labels = {"Name: ", "ID No: ", "Username: ", "Password: "};
         int numPairs = labels.length;
        JPanel pan = new JPanel(new SpringLayout());
        for (int i = 0; i < numPairs; i++) {
            JLabel lab = new JLabel(labels, JLabel.TRAILING);
    pan.add(lab);
    JTextField textField = new JTextField(10);
    lab.setLabelFor(textField);
    pan.add(textField);
    SpringUtilities.makeCompactGrid(pan, numPairs, 2, 6, 6, 6, 6); //(rows, columns, initx, inity, xpad, ypad
         JFrame frame = new JFrame("Nerkesa Pignatelli");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         pan.setOpaque(true);
         frame.setContentPane(pan);
         //Display the window.
         frame.pack();
         frame.setVisible(true);
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }The only reason i ask this is because i followed the sun tutorial site to produce this register form and when it run's it,, it uses createAndShowGUI(); where when i have added different classes to action events before, i have normally used somthing like in my title class, new Title().setVisible(true);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do you kick-off an action/event before a JSF Portlet is rendered?

    Hi,
    I am creating JSR-168 Portlets using Sun RI 1.1 and need the ability to call an action (ie. method) of the JSF Portlet before it is rendered. Any ideas how to do this?
    Scenario To Resolve
    If a customer is on the Check-Out Portal Page, the check-out portlet will initially display the shopping cart information.
    The customer will then click buy and the portlet will display a confirmation page.
    Now, if the customer decides to do additional shopping (ie. place a second order).
    The customer will navigate to a different Portal Page to browse items.
    Once the customer is done shopping, the customer will click Check-Out and the Portal will display the Check-Out Portal Page. Currently, when the check-out portlet is rendered, the portlet is automatically rendering the confirmation page (ie. the last state of the check-out portlet).
    Question
    How can I control the state of the portlet so that the initial state of the portlet is rendered (ie. the shopping cart information)?
    - Is there something built into the JSR-168 Spec? Or, Sun's JSF RI 1.1 that will enable me to kick-off an action/event before a JSF Portlet is rendered?
    - If this functionality is not built in, has anyone faced this challenge? If so, how did you extend the framework to resolve it?

    Hi,
    I am creating JSR-168 Portlets using Sun RI 1.1 and need the ability to call an action (ie. method) of the JSF Portlet before it is rendered. Any ideas how to do this?
    Scenario To Resolve
    If a customer is on the Check-Out Portal Page, the check-out portlet will initially display the shopping cart information.
    The customer will then click buy and the portlet will display a confirmation page.
    Now, if the customer decides to do additional shopping (ie. place a second order).
    The customer will navigate to a different Portal Page to browse items.
    Once the customer is done shopping, the customer will click Check-Out and the Portal will display the Check-Out Portal Page. Currently, when the check-out portlet is rendered, the portlet is automatically rendering the confirmation page (ie. the last state of the check-out portlet).
    Question
    How can I control the state of the portlet so that the initial state of the portlet is rendered (ie. the shopping cart information)?
    - Is there something built into the JSR-168 Spec? Or, Sun's JSF RI 1.1 that will enable me to kick-off an action/event before a JSF Portlet is rendered?
    - If this functionality is not built in, has anyone faced this challenge? If so, how did you extend the framework to resolve it?

  • Can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable

    can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • Question related to Java Concurrent Program

    Hi Friends,
    I have a basic question related to Java Concurrent Program in the Oracle application. I would like to know the how Java concurrent program is executed in Oracle applications.Also, want to know where can I find the document for the AOL packages for Java concurrent program. Document for packages like oracle.apps.fnd.cp.request.* , oracle.apps.fnd.util.*.
    Please let me know.
    -Thanks,
    Satya

    You may also check:
    Note: 250964.1 - How to Register Sample Java Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=250964.1
    Note: 186301.1 - How to register and execute Java Concurrent Program ?in Oracle Applications R11i?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186301.1

  • 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.

  • Interview Questions related to Warehouse management

    Hi all
    Can u please help me regarding  Interview Questions related to Warehouse management
    Thanks and Regds
    Daniel

    Have you searched in very first thread
    [Warehouse Management?|New to Materials Management / Warehouse Management?;

  • h:CommandLink : Action event not called on the first click

    Hi,
    I am facing a problem here.
    I have a JSF page:
    When I first load the page, I have few text boxes and dropdowns. With out doing anything If I click the <h:commandLink I call an action in my pagecode.
    But the problem is on the very first load of the page, without doing anything if I click on the command link action event in my pagecode is not called, but If I click on the link the second timethe pagecode actionevent is called.
    So I think tried submitting the form in the JSF page onclik of the commandlink it works in my Local IBM RAD. But doesnot work in the WebSphere Portal.
    So can you tell me if I can submit the form atleast once when the page loads for the first time
    This is my command link:
    <tr>
    <td colspan="2" align="center">
    <h:commandLink styleClass="commandLink" id="lnkBtnCreateUser" action="#{pc_Createuser.doLnkBtnCreateUserAction}">
    <hx:graphicImageEx styleClass="graphicImageEx" id="imgBtnCreateUser" value="/theme/images/btnCreateUser.gif" style="border:0;cursor:pointer" onclick="return onFormSubmit();"></hx:graphicImageEx>
    </h:commandLink>
    </td>
    </tr>
    function onFormSubmit(){
    //enabling all the disable components
    So can anybody please help me on this. Why exactly the pageCode action event is not called for the very first click ???

    seems that a prependID="false" attribute in the respective form was causing the trouble. At least it's working now that I've deleted it.
    I introduced it, because last time the component ID's messed up the output of the error/success messages ("j_id:xxx isn't that of a usefull information to the enduser).
    Edited by: stger on Apr 9, 2008 5:41 PM

Maybe you are looking for

  • Windows 7 - Lightroom 5.3

    After loadinf lightroom 5.3 in a windows 7 environment, there seemed to be an issue with the "color profile"... Are there recommended profiles for 5.3?

  • Invoice Posted in Local Currency - Payment in USD

    How do I handle this situation - Invoice is posted in Local Currency. (Co Code Currency) Payments are done in USD Please assist.

  • Weather application Runtime error - plz help......

    Hi All, I am trying to create an Weather application presented in blog "Create a weather magnet using xml feed from weather.com" by Prakash singh. It accpets XML feed (web service) from weather.com Everything works fine, when I deploy it into Portal.

  • Cfx_Image error

    This code: <cfx_image action="iml" name="qvimage" file="new" x="70" y="30" bgcolor="000000" commands=" ## setfont size,italic,underline,weight,face setfont 16, #application.vimage.italic[variables.ritalic]#, 0, #application.vimage.weight[variables.rw

  • Screaming audio control

    Trying to control streaming audio with buttons, want to be able to select a file with one button to start stream, then select a second file with a second button. Problem is that BOTH files play simultaneously. How do you switch between files on the s