Re: WOText issue...
Re: WOText issue...
- Subject: Re: WOText issue...
- From: Kaj Hejer <email@hidden>
- Date: Wed, 3 Mar 2004 19:52:12 +0100
At 12:20 +0530 03-03-04, Kranthi Sagar Borra wrote:
Hi all
I have a WOText in my page and the user can enter any amount of text
into it. So is there any way to check how much data has been added
to this text and alert the user if it has exceeded a particular
size. Thank you.
Hi!
See the javascript solution on
http://www.stepwise.com/Articles/Technical/2001-06-13.01.html
To get the maxlength for a attribue in the database we use the
following method:
public static int attributeLength(String entityName, String
attributeName) {
try {
return EOModelGroup.defaultGroup().entityNamed(entityName)
.attributeNamed(attributeName).width();
} catch (Exception e) {
return 0;
}
}
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.