Dis you try: *"object.setValue(object.getValue());" *??

2011/8/2 vaibhav bhalke <bhalke.vaib...@gmail.com>

> Hi all,
>
> PFA WebEx recording for Issue.
>
> I want to used editableNumbercell like intger,decimal etc.. But there is no
> such gwt widget present so I am using editable text cell and using
> validation for numbers when user update value in cell.
>
> How to avoid cell editing when validation fails.
>
> if validation fail then editable-text cell value restored to old value.How
> to do that?
>
> intgerColumn.setFieldUpdater(new FieldUpdater<RecordInfo, String>() {
>
>         public void update(int index, RecordInfo object, String value) {
>
>             // Called when the user changes the value.
>             if(value.matches("(-)?(\\d){1,8}")){
>
>                 object.setColumnInRecordEdited(true);
>                 object.setValue(value);
>
>                 RecordData.get().refreshDisplays();
>
>             }else{
>                 Window.alert("Specify valid integer value for parameter");
>
>                 // How to rest old value here? currently update value set to 
> cell
>
>             }
>
>         }
>
>     });
>
> Any help or guidance in this matter would be appreciated.
>
>
> --
> Best Regards,
> Vaibhav Bhalke
> About me : http://about.me/vaibhavbhalke
>
> <http://about.me/vaibhavbhalke>
>
>
>
>  --
> 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.
>



-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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