Quantcast

Tests on

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Tests on

Sandro Martini
Note: I'm doing these tests on the latest sources of the 2.0 under vote ...

"Table Row Demo" Applet

double click on a row:
- pressing Escape is Good
- while pressing click on another row (or pressing Enter) I get this:

java.lang.NumberFormatException: For input string: "1286,90"
        at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
        at java.lang.Float.valueOf(Unknown Source)
        at org.apache.pivot.demos.roweditor.AmountBindMapping.valueOf(AmountBindMapping.java:33)
        at org.apache.pivot.wtk.TextInput.store(TextInput.java:841)
        at org.apache.pivot.wtk.Container.store(Container.java:613)
        at org.apache.pivot.wtk.content.TableViewRowEditor.endEdit(TableViewRowEditor.java:254)
        at org.apache.pivot.wtk.content.TableViewRowEditor$1.mouseDown(TableViewRowEditor.java:96)
        at org.apache.pivot.wtk.Container$ContainerMouseListenerList.mouseDown(Container.java:84)
        at org.apache.pivot.wtk.Container.mouseDown(Container.java:702)
        at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:840)
        at java.awt.Component.processEvent(Unknown Source)
        at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

and I continue to get this exception until I exit from row editing mode

My locale is Italian so these formats are not good in my locale, so maybe a simple catch of this in this demo could be enough ... just to avoid the exception.

If in edit mode I write the right (locale-dependent decimal separators, or "." for decimals and "," for thousands), all is good and then the value is transformed and shown in the right locale-independent format of this Demo.
Or better, "." become "," one time shown, and this is ok.
But I'm unable to write "," for thousands in text fields, but maybe this could be due to some validation rule here, right ?

Comments ?

To remember this (if it's the case) I'll open a ticket for the 2.0.1 release ...


Bye,
Sandro
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Tests on "Table Row Demo" Applet

Sandro Martini
Hi to all,
comments on this ?
Should I open a ticket for the 2.0.1 ?

Thank you.

Bye,
Sandro
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Tests on "Table Row Demo" Applet

Greg Brown-2
Have you seen this issue?

https://issues.apache.org/jira/browse/PIVOT-681

Could it be related?

On Dec 27, 2010, at 9:01 AM, Sandro Martini wrote:

>
> Hi to all,
> comments on this ?
> Should I open a ticket for the 2.0.1 ?
>
> Thank you.
>
> Bye,
> Sandro
>
> --
> View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/Tests-on-tp2132533p2151744.html
> Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Tests on

Sandro Martini
Hi Greg,
thanks for the link, probably it's related to that issue (I was thinking it was already merged for the 2.0).
I can assign to me this issue and try the patch (and do some tests) for the 2.0.1 ...

Thank you again,
Sandro
Loading...