Well, the TextBoxBase, on the other hand, transforms any null value
into a empty string.

Not sure if this is good either, but as a matter o fact I do not know
who is turning my empty strings to null.

Flush? It should not.

Or?



On Aug 18, 12:45 am, "P.G.Taboada" <[email protected]> wrote:
> From the ValueBoxBase<T> source:
>
>   /**
>    * Return the parsed value, or null if the field is empty.
>    *
>    * @throws ParseException if the value cannot be parsed
>    */
>   public T getValueOrThrow() throws ParseException {
>     String text = getText();
>
>     T parseResult = parser.parse(text);
>
>     if ("".equals(text)) {
>       return null;
>     }
>
>     return parseResult;
>   }
>
> Bug or feature? I feel very uncomfortable about having my empty
> strings converted to null.
>
> Comments?
>
> On 18 Aug., 00:27, "P.G.Taboada" <[email protected]> wrote:
>
>
>
>
>
>
>
> > hi,
>
> > Not sure what I am doing wrong.
>
> > I did build a form with uibinder and I am populating a few TextBoxes
> > with an editor:
>
> > mydriver.initialize( this );
> > mydriver.edit( somebean );
>
> > ... User edits data ...
>
> > changedBean = myeditor.flush();
>
> > When I look at the changedBean, all empty string properties became
> > null. Not what I or the database did expect.
>
> > I am using gwt build from trunk.
>
> > Brgds,
>
> > Papick

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