[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Truncation of NSStrings to EO width property
- To: webobjects@omnigroup.com
- Subject: Truncation of NSStrings to EO width property
- From: Ian Calegory <ian@i-225.com>
- Date: Mon, 04 Jan 1999 15:19:00 -0700
- Organization: Profiles in Data
Hello,
NT 4 SP 4/WO 4
I've noticed some new behavior with WO 4, in that if you create an EO
that has an attribute with a width of, say, 500 specified in the
EOModel, and bind that attribute to a WOText, WO will bind a null value
to that attribute if the length of the text in the WOText is greater
than 500.
Is there a way to catch that "exception", somehow? --so either the text
can be truncated, say, or an error page can be returned? Before I
checked the length, and if it was greater than 500, I returned an error
page and had the user revise the WOText. Now I can't see a way to tell
if something was entered with a length greater than a certain amount,
because if it's greater than what's specified in the EOModel, it's value
after binding is null.
Thanks,
Ian