I am having trouble retreiving the previous value of the the cell and
placing it back on the actual table in the panel/

I am trying to capture when user enters a blank.  I am posting an
alert message but I am not able to retrieve and display the original
value.

I see options to do this in the TextInputCell.

The text cell will actually shrink (I am using a CellTable with just
one column).  When I select that row again, the field will then expand
with no value.  If I then select another row, it will finally show the
original value.

There is no way for me to get ahold of the ViewData to replace the
text value for this Cell?

Here is a snapshot of my code:

            docName.setFieldUpdater(new FieldUpdater<MyDocument,
String>()
            {
                public void update(int index, MyDocument
myDocumentToBeUpdated, final String changeValueFromScreen)
                {
                    //Check if old and new are different before
updating to DB
                    if (!
myDocumentToBeUpdated.getDisplayName().equals(changeValueFromScreen))
                    {
                        if (changeValueFromScreen.trim().equals(""))
                        {
                            docScrollPanel.remove(cellTable);

                            Window.alert("Document name can not be
blank.");
                            //trying to refresh the list and the table
in the panel
                            retrieveDocsFromService(null);
                            docScrollPanel.add(cellTable);
                            docScrollPanel.remove(cellTable);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to