I am trying to use NumberFormatter and DataBinding with a Text control.

When I insert some number with copy and paste, only the first digit

appears in the text control. When I change the verifyText method form

(line 637 ff)

int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator()); //

Decimal separator position

for (int i = 0; i < e.text.length(); i++) {

....

to

for (int i = 0; i < e.text.length(); i++){

int d = this.editValue.indexOf(EMPTY +

this.symbols.getDecimalSeparator());

...

it works. So I have two questions:

1. Does copy and paste work with NumberFormatter?

2a. If yes: Can you give mi some hint what to do?

Somebody can give me some help on this?

Thanks in advance.

Leo]]>

> Hi,

> I am trying to use NumberFormatter and DataBinding with a Text control.

> When I insert some number with copy and paste, only the first digit

> appears in the text control. When I change the verifyText method form

> (line 637 ff)

> int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator()); //

> Decimal separator position

> for (int i = 0; i < e.text.length(); i++) {

> ....

> to

> for (int i = 0; i < e.text.length(); i++){

> int d = this.editValue.indexOf(EMPTY +

> this.symbols.getDecimalSeparator());

> ...

> it works. So I have two questions:

> 1. Does copy and paste work with NumberFormatter?

> 2a. If yes: Can you give mi some hint what to do?

> Somebody can give me some help on this?

> Thanks in advance.

> Leo

Hi,

I'm facing the same problem in my application.

Did you manage to find the solution or the reason it behaves like that?

I'm looking for the solution that does not involve changing the

implementation of the NumberFormatter class.

I'd be grateful for any tips

Regards,

Andrzej]]>

> Hi,

> I am trying to use NumberFormatter and DataBinding with a Text control.

> When I insert some number with copy and paste, only the first digit

> appears in the text control. When I change the verifyText method form

> (line 637 ff)

> int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator()); //

> Decimal separator position

> for (int i = 0; i < e.text.length(); i++) {

> ....

> to

> for (int i = 0; i < e.text.length(); i++){

> int d = this.editValue.indexOf(EMPTY +

> this.symbols.getDecimalSeparator());

> ...

> it works. So I have two questions:

> 1. Does copy and paste work with NumberFormatter?

> 2a. If yes: Can you give mi some hint what to do?

> Somebody can give me some help on this?

> Thanks in advance.

> Leo

Hi,

I'm facing the same problem in my application.

Did you manage to find the solution or the reason it behaves like that?

I'm looking for the solution that does not involve changing the

implementation of the NumberFormatter class.

I'd be grateful for any tips

Regards,

Andrzej]]>

Eric seems to be slow at working on fixes, but nagging through bugzilla

is probably the best way to encourage him.

I have added your change as a patch on the bug, hopefully this will help.

- Andi

Andrzej Urban wrote:

> Leo Niedermeier wrote:

>

>> Hi,

>

>> I am trying to use NumberFormatter and DataBinding with a Text

>> control. When I insert some number with copy and paste, only the first

>> digit appears in the text control. When I change the verifyText method

>> form (line 637 ff)

>

>> int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator());

>> // Decimal separator position

>> for (int i = 0; i < e.text.length(); i++) {

>> ....

>

>> to

>

>> for (int i = 0; i < e.text.length(); i++){

>> int d = this.editValue.indexOf(EMPTY +

>> this.symbols.getDecimalSeparator());

>> ...

>

>> it works. So I have two questions:

>> 1. Does copy and paste work with NumberFormatter?

>> 2a. If yes: Can you give mi some hint what to do?

>

>> Somebody can give me some help on this?

>

>> Thanks in advance.

>

>> Leo

>

> Hi,

>

> I'm facing the same problem in my application.

>

> Did you manage to find the solution or the reason it behaves like that?

>

> I'm looking for the solution that does not involve changing the

> implementation of the NumberFormatter class.

>

> I'd be grateful for any tips

>

> Regards,

>

> Andrzej

>]]>

Eric seems to be slow at working on fixes, but nagging through bugzilla

is probably the best way to encourage him.

I have added your change as a patch on the bug, hopefully this will help.

- Andi

Andrzej Urban wrote:

> Leo Niedermeier wrote:

>

>> Hi,

>

>> I am trying to use NumberFormatter and DataBinding with a Text

>> control. When I insert some number with copy and paste, only the first

>> digit appears in the text control. When I change the verifyText method

>> form (line 637 ff)

>

>> int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator());

>> // Decimal separator position

>> for (int i = 0; i < e.text.length(); i++) {

>> ....

>

>> to

>

>> for (int i = 0; i < e.text.length(); i++){

>> int d = this.editValue.indexOf(EMPTY +

>> this.symbols.getDecimalSeparator());

>> ...

>

>> it works. So I have two questions:

>> 1. Does copy and paste work with NumberFormatter?

>> 2a. If yes: Can you give mi some hint what to do?

>

>> Somebody can give me some help on this?

>

>> Thanks in advance.

>

>> Leo

>

> Hi,

>

> I'm facing the same problem in my application.

>

> Did you manage to find the solution or the reason it behaves like that?

>

> I'm looking for the solution that does not involve changing the

> implementation of the NumberFormatter class.

>

> I'd be grateful for any tips

>

> Regards,

>

> Andrzej

>]]>