[
https://issues.apache.org/jira/browse/PIVOT-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975255#action_12975255
]
Sandro Martini commented on PIVOT-681:
--------------------------------------
Note that probably another related thing is this (summary):
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 ?
Full thread here:
http://apache-pivot-developers.417237.n3.nabble.com/Tests-on-td2132533.html
> TableRowEditor demo: amount field doesn't validate in some countries
> --------------------------------------------------------------------
>
> Key: PIVOT-681
> URL: https://issues.apache.org/jira/browse/PIVOT-681
> Project: Pivot
> Issue Type: Bug
> Components: demos
> Reporter: Dirk Möbius
> Assignee: Sandro Martini
> Fix For: 2.0.1
>
> Attachments: tableroweditor-demo.patch, test-applet.html
>
>
> See
> http://mail-archives.apache.org/mod_mbox/pivot-user/201012.mbox/%[email protected]%3e
> for details.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.