Friday, December 27, 2013

Re: Differences between DevMode and Production mode related to trim()

I guess that I should explain what 'fails' means.

We're looking to add items to the list when both the TrailerID and TripID fields are empty.

The failure is that, the trim() checks in Java, trim the 'whitespace' which in this case are null characters in the String. So the comparison is successful and some items get added to the list.

But in JavaScript those calls to trim appear to be seeing an array of 0's, which it is not trimming. So the comparison fails and nothing gets added to the list.

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment