Hi Christoph,
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 m
E276502600
On 15.07.2013, at 11:21, Ingenieurbüro Birnfeld - Oliver Birnfeld
wrote:
>>> 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!
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 ign
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,
>
Hi,
I have a problem using NSNumberFormatter to validate the input of an
WOTextField. When e.g. setting formatter.setMinimum(5) and
formatter.setMaximum(20) then validationFailedWithException is called
for all values <0, >20, and 1-4 but _not_ for 0.
Here are some code sn
use of
>> http://api.webobjects.me/wo542/com/webobjects/foundation/NSNumberFormatter.html#setStringForNotANumber(java.lang.String)
>> which oddly doesn't seem to work
>>
>> Here is my code for this:
>>
>> public synchronized NSNumberForma
>
> public synchronized NSNumberFormatter twoDecimalPlacesNumberFormatter()
> {
> if (twoDecimalPlacesNumberFormatter == null)
> {
> twoDecimalPlacesNumberFormatter = new
> NSNumberFormatter();
>
Hi list,
I am trying to make use of
http://api.webobjects.me/wo542/com/webobjects/foundation/NSNumberFormatter.html#setStringForNotANumber(java.lang.String)
which oddly doesn't seem to work
Here is my code for this:
public synchronized NSNumberFormatter twoDecimalPlacesNumberForm
>> I get strange behaviour if and only if formatting the
>> value of zero. Am I something missing? Or what is the
>> point here?
>>
>> -
>>
>> NSNumberFormatter nf = new NSNumberFormatter("__0.00");
>>
>> nf.setLocalizesPatter
Hi Michael,
On Jun 17, 2010, at 10:29 AM, Michael Schmiedgen wrote:
Hi list,
I get strange behaviour if and only if formatting the
value of zero. Am I something missing? Or what is the
point here?
-
NSNumberFormatter nf = new NSNumberFormatter("__0.00");
nf.setLocalizesPa
Hi list,
I get strange behaviour if and only if formatting the
value of zero. Am I something missing? Or what is the
point here?
-
NSNumberFormatter nf = new NSNumberFormatter("__0.00");
nf.setLocalizesPattern(true);
nf.format(new Integer(0)); // formatted nu
nd
Date handling?
No, but moving to pure Java is not likely to make me happier.
Chuck
On Feb 8, 2008, at 6:00 PM, Mr. Pierre Frisch wrote:
There was a long discussion about the NSTimestampFormatter not
long ago. I would put the NSNumberFormatter in the same bag.
Duplicate API, should be
... you name it.
Is anyone out there who is happy with the current Java/WO Time and
Date handling?
cheers
gt
On Feb 8, 2008, at 6:00 PM, Mr. Pierre Frisch wrote:
There was a long discussion about the NSTimestampFormatter not long
ago. I would put the NSNumberFormatter in the same bag. D
s 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 perfectly f
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
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 f
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
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. Just wondering what everyone else uses and the
pro
18 matches
Mail list logo