Saturday, March 28, 2015

Re: insert data into database in testbox

TextBox txt=new TextBox(); 

  button.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {

                //method to save the data

              txt.getValue(); //Get the value from textbox and send it to server to saved in database

            }
        });

On Saturday, March 28, 2015 at 12:38:42 PM UTC+5:30, Bita Mirshafiee wrote:
Hi all,

I have a simple application containing a TextBox and Button, the point is that when I write something in the TextBox and click the Button the text in the TextBox saved in database, here is what I wrote, but I don't know how to save it by clicking:

        button.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {

                //method to save the data

            }
        });

Any help would be appreciated alot.

Bita

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment