Hi,

Set the name of textbox as an id of the record (or DTO, whatever you
call it).

and then:

textBox.addKeyboardListener(new KeyboardListenerAdapter() {
      public void onKeyPress(Widget sender, char keyCode, int
modifiers) {
        if (keyCode == (char) KEY_TAB){
          // TextBox.cancelKey() suppresses the current keyboard
event.
          String recordId = ((TextBox)sender).getName();
          // call the service with this id and on success update the
row

        }
      }
    });
Hope it should work.

-Bakul kumar

On Feb 20, 3:59 pm, NewToGWT <[email protected]> wrote:
> Hello,
>
> I have a FlexTable, the first column of each row in the FlexTable is a
> TextBox.
>
> I am calling a service to update the other elements (columns) of the
> FlexTable row based on what the user keyed into the text box in that
> row.
>
> The question I have is: How do I determine which row in the FlexTable
> the user keyed into and tabbed off of? I have  a keyboard listener
> attached to the TextBox. Using this istener, I am unable to figure out
> which row in the FlexTable was modified.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to