Re: NSNumberFormatter

2013-07-15 Thread Christoph Wick
Hi Oliver, use the "validateKey" mechanism (where "Key" is the name of property, e.g. myNumber) public Object validateMyNumber(Object aValue) throws NSValidation.ValidationException { // 1. cast aValue to int (or whatever you need // 2. write check method

Re: NSNumberFormatter

2013-07-15 Thread Ingenieurbüro Birnfeld - Oliver Birnfeld
inputFormatter=new NSNumberFormatter("0"); The same result as with "#". I think, I have to write my own validator. Any newbie hints for that task? Thanks! Oliver ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailin

Re: NSNumberFormatter

2013-07-12 Thread Chuck Hill
Is the original value zero? WO might be short-circuiting something if the value does not change. Also try 0 as the format pattern: > inputFormatter=new NSNumberFormatter("0"); Chuck On 2013-07-12, at 5:21 AM, Ingenieurbüro Birnfeld - Oliver Birnfeld wrote: > Hi, > > I have a problem using

Re: NSNumberFormatter vs NumberFormat

2008-02-13 Thread Chuck Hill
Gentlemen, On Feb 9, 2008, at 9:21 AM, Georg Tuparev wrote: I watched the NSTimestampFormatter discussion initially with amazement that changed to annoyance. Now I have to voice my frustration! Please do. I think more people need to be more vocal about the work that this change is goin

Re: NSNumberFormatter vs NumberFormat

2008-02-09 Thread Mr. Pierre Frisch
Georg, I hear you but have you look at how the NS*Formatter are implemented? They are a thin veneer on top of the Java format. There is nothing you can do with those formatter you cannot do with the Java formats, but there are quite a few things you can do with the Java format that do not

Re: NSNumberFormatter vs NumberFormat

2008-02-09 Thread Georg Tuparev
Pierre, I watched the NSTimestampFormatter discussion initially with amazement that changed to annoyance. Now I have to voice my frustration! The fact that Java implements Time and Number formatters does not mean that they are usable. Not that WO Time&Date support is fantastic, but at lea

Re: NSNumberFormatter vs NumberFormat

2008-02-08 Thread Lachlan Deck
On 09/02/2008, at 4:03 AM, Daniele Corti wrote: 2008/2/8, Michael Halliday <[EMAIL PROTECTED]>: Just a question regarding the use of NSNumberFormatter vs NumberFormat. Hi Michael, Look I'm not an expert of this, but I see that NumberFormat has not the format() method for Objects (it

Re: NSNumberFormatter vs NumberFormat

2008-02-08 Thread Daniele Corti
2008/2/8, Michael Halliday <[EMAIL PROTECTED]>: > > Hey list!! > > Just a question regarding the use of NSNumberFormatter vs NumberFormat. > > We're working on localizing one of our app for use in multiple > countries. We are dealing with decimal and currency formats in a > variety of locales. Ju

Re: NSNumberFormatter vs NumberFormat

2008-02-08 Thread Mr. Pierre Frisch
There was a long discussion about the NSTimestampFormatter not long ago. I would put the NSNumberFormatter in the same bag. Duplicate API, should be deprecated. I did not do it as it was was working for most people but I don't see the point of fixing bugs there when the Java one work perfec