• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOText issue...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: WOCookie - replacing/removing?
  • Next by Date: problem with WOForm, inserting an object into an array used to create the WOForm
  • Previous by thread: WOText issue...
  • Next by thread: WOCookie - replacing/removing?
  • Index(es):
    • Date
    • Thread