• 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: Use of the "formatter" binding on a WOString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of the "formatter" binding on a WOString?


  • Subject: Re: Use of the "formatter" binding on a WOString?
  • From: Sacha Michel Mallais <email@hidden>
  • Date: Wed, 11 Oct 2006 08:45:20 -0700

On Oct 11, 2006, at 8:09 AM, Matt Kime wrote:

I'm terribly confused as to how to use a formatter in on a WOString in
a WOComponent. How is the "formatter" binding to be used? Must there
be code in the component? I've used the date and number formatters so
I guess I'm expecting something similar. I'd appreciate even a point
towards simple documentation. I'm confused as to how I could be so
confused over this.

The dateformat and numberformat bindings both take format strings. The formatter binding takes a formatter object. So, yes, one way to do that would be to write a method on your component that returns a formatter object and bind formatter to that method.


The WOString docs are here: http://developer.apple.com/documentation/ WebObjects/Reference/DynamicElements/WOString/chapter_32_section_3.html

HTH,


sacha

_______________________________________________
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


References: 
 >Use of the "formatter" binding on a WOString? (From: "Matt Kime" <email@hidden>)

  • Prev by Date: Use of the "formatter" binding on a WOString?
  • Next by Date: Re: WOUnittest2 Error JavaNoneAdaptor
  • Previous by thread: Use of the "formatter" binding on a WOString?
  • Next by thread: Re: Use of the "formatter" binding on a WOString?
  • Index(es):
    • Date
    • Thread