FieldArithmetics Add-on - Vaadin Add-on Directory
Arithmetic field extensionFieldArithmetics is an extension add-on that evaluates simple calculations on the client-side before the field value is sent to the server side. in addition to the basic operations: +, -, /, *. (plus, minus, division, multiplication) it also has limited support for ^ (power operator), parenthesis and locale (thousand and decimal separators) auto guessing.
Field types it can extend are: TextField, TextArea and various Stepper add-on's fields.
This add-on uses a custom EventDispatcher that must be registered to the GWT event system before the Vaadin debug windows is opened or the extension will not work when the debug window is open. Because of this, make sure the add-on widget set must be inherited before the Vaadin DefaultWidgetset.
E.g. edit your gwt.xml to look something like this:
`` ``
`` ``
Online DemoIssue Tracker
Source Code
FieldArithmetics Add-on version 0.0.1
null
FieldArithmetics Add-on version 0.0.2
Replaced the EvenInterceptor with an EventDispatcher that catches change events before Vaadin handles them. This should cause less problems in the framework which in some cases relies on DOM.getEventListener returning a Widget.
Because the EventDispatcher must be registered before any GWT events occur the add-on widget set must be inherited before the Vaadin DefaultWidgetset or the etension will not work when the Vaadin debug window is enabled.
E.g. edit your gwt.xml to look something like this:
FieldArithmetics Add-on version 0.0.3
Removed vaadin-client-compiler dependency