• 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: WOLips binding validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOLips binding validation


  • Subject: Re: WOLips binding validation
  • From: Art Isbell <email@hidden>
  • Date: Mon, 17 Dec 2007 13:06:36 -1000

On Dec 17, 2007, at 12:38 PM, Ricardo Parada wrote:

Any ideas on how to make the component editor treat this as valid?  :-)


AppealedAmountTextField: WOTextField {
numberformat = "$#,##0.00";
value = appealedAmount;
onChange = "_javascript_:
if (this.value > this.form.RecoveredAmount.value) 
this.form.RAD.value = (this.value - this.form.RecoveredAmount.value); 
else this.form.RAD.value = 0; 
this.form.submit();";
}

Probably easier to define a method in your component that returns this JS string and then bind to this method rather than trying to figure out how to satisfy the component editor.

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOLips binding validation
      • From: Mike Schrag <email@hidden>
References: 
 >WOLips binding validation (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: WOLips binding validation
  • Next by Date: Re: A REAL newbie
  • Previous by thread: Re: WOLips binding validation
  • Next by thread: Re: WOLips binding validation
  • Index(es):
    • Date
    • Thread