Re: Use of the "formatter" binding on a WOString?
Re: Use of the "formatter" binding on a WOString?
- Subject: Re: Use of the "formatter" binding on a WOString?
- From: Chuck Hill <email@hidden>
- Date: Wed, 11 Oct 2006 10:31:40 -0700
And in case you need further clarification of David's suggestion...
In Application.java add this (for example)
private NSTimestampFormatter dmyFormatter = new NSTimestampFormatter
("%d/%m/%y");
public NSTimestampFormatter dmyFormatter() {
return dmyFormatter;
}
And then in your bindings in the .wod:
formatter=application.dmyFormatter;
Chuck
On Oct 11, 2006, at 9:06 AM, David Holt wrote:
I use it as a method call in Application that strips out certain
characters from my database record before displaying in HTML.
For example, in the formatter field I bind it to
application.formatCode
I apply the formatter to a text area in most cases.
David
On 11 Oct 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.
--matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in late 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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