NumberField (Vaadin 7)

HI

I produce a new jar for vadin 7.6.0 from a copy of your git repository for Numberfield with Vaadin 7.6.0 jars and widget compiler. So the compilation with Vaadin 7.6.0 doen’t solve the problem.
The problem remains as it and i am sure that Numberfield is the cause because when I don’t put the NumberField component in the form, the problem doesn’t occur.
I send you the browser error in this message because attachment doesn’t work with it. The json stream seems ok.
Your addon is a great addon for numeric field and i am blocked by it.
Can you give me a delay to take the decision to return in Vaadin 7.5.10 ? Thanks for all your great work.

SEVERE: Unable to parse JSON: {“syncId”: 3, “clientId”: 3, “changes” : [[“change”,{“pid”:“0”},[“0”,{“id”:“0”,“location”:“http://localhost:8080/basil/”}]
],[“change”,{“pid”:“40”},[“33”,{“id”:“40”,“selectmode”:“single”,“cols”:5,“rows”:4,“firstrow”:0,“totalrows”:4,“pagelength”:15,“colheaders”:true,“colfooters”:false,“vcolorder”:[“1”,“2”,“3”,“4”,“5”]
,“pb-ft”:0,“pb-l”:3,“clearKeyMap”:true,“v”:{“selected”:,“firstvisible”:0,“firstvisibleonlastpage”:-1,“sortcolumn”:“null”,“sortascending”:true,“reqrows”:-1,“reqfirstrow”:-1,“columnorder”:[“1”,“2”,“3”,“4”,“5”]
,“collapsedcolumns”:,“noncollapsiblecolumns”:
}},[“rows”,{},[“tr”,{“key”:1},“Expressionisme”,“11 juin 1910”,“”,“105”,“Peinture”]
,[“tr”,{“key”:2},“Fauvisme”,“2 mai 1905”,“”,“110”,“Peinture”]
,[“tr”,{“key”:3},“Impressionisme”,“30 avr. 2015”,“”,“0”,“Peinture”]
,[“tr”,{“key”:4},“Surrealisme”,“1 janv. 2015”,“”,“1”,“Peinture”]
],[“visiblecolumns”,{},[“column”,{“cid”:“1”,“caption”:“nom”,“fcaption”:“”,“sortable”:true}]
,[“column”,{“cid”:“2”,“caption”:“date début”,“fcaption”:“”,“sortable”:true,“align”:“c”}]
,[“column”,{“cid”:“3”,“caption”:“date finale”,“fcaption”:“”,“sortable”:true,“align”:“c”}]
,[“column”,{“cid”:“4”,“caption”:“durée”,“fcaption”:“”,“align”:“e”}]
,[“column”,{“cid”:“5”,“caption”:“domaine artistique”,“fcaption”:“”,“sortable”:true}]
],[“filters”,{“filtersvisible”:true,“forceRender”:true,“wrapFilters”:false},[“filtercomponent-5”,{“columnid”:“5”},[“1”,{“id”:“41”,“cached”:true}]
],[“filtercomponent-2”,{“columnid”:“2”},[“34”,{“id”:“44”,“cached”:true}]
],[“filtercomponent-1”,{“columnid”:“1”},[“1”,{“id”:“46”,“cached”:true}]
],[“filtercomponent-3”,{“columnid”:“3”},[“34”,{“id”:“42”,“cached”:true}]
]]]],[“change”,{“pid”:“57”},[“35”,{“id”:“57”}]
],[“change”,{“pid”:“69”},[“36”,{“id”:“69”,“readonly”:true,“viewWithoutEditor”:false,“inPageConfig”:“{ toolbarCanCollapse : true, toolbarStartupExpanded : false }”,“protected_body”:false,“v”:{“text”:“”}}]
],[“change”,{“pid”:“41”},[“1”,{“id”:“41”}]
],[“change”,{“pid”:“46”},[“1”,{“id”:“46”}]
],[“change”,{“pid”:“61”},[“37”,{“id”:“61”,“locale”:“fr”,“strict”:true,“wn”:false,“parsable”:true,“v”:{“day”:-1,“month”:-1,“year”:-1}}]
],[“change”,{“pid”:“62”},[“37”,{“id”:“62”,“locale”:“fr”,“strict”:true,“wn”:false,“parsable”:true,“v”:{“day”:-1,“month”:-1,“year”:-1}}]
],[“change”,{“pid”:“64”},[“38”,{“id”:“64”,“prompt”:“”,“noInput”:true,“nullselect”:true,“pagelength”:10,“filteringmode”:“STARTSWITH”,“totalitems”:6,“totalMatches”:6,“v”:{“selected”:
,“filter”:“”,“page”:0}},[“options”,{},[“so”,{“caption”:“”,“key”:“”}]
,[“so”,{“caption”:“cinéma”,“key”:“1”}]
,[“so”,{“caption”:“Peinture”,“key”:“2”}]
,[“so”,{“caption”:“Photographie”,“key”:“3”}]
,[“so”,{“caption”:“Sculpture”,“key”:“4”}]
,[“so”,{“caption”:“Ecriture”,“key”:“5”}]
]]],[“change”,{“pid”:“63”},[“39”,{“id”:“63”,“allowDecimals”:false,“allowNegative”:true,“decimalPrecision”:2,“decimalSeparator”:44,“useGrouping”:false,“groupingSeparator”:160,“minValue”:-Infinity,“maxValue”:99999.0,“formattedValue”:“0”}]
],[“change”,{“pid”:“60”},[“1”,{“id”:“60”}]
]], “state”:{“0”:{“pageState”:{“title”:“jvalere/taalentia2”}},“35”:{“childData”:{“36”:{“alignmentBitmask”:5,“expandRatio”:0}},“height”:“100.0%”,“width”:“100.0%”,“description”:null},“36”:{“tabs”:[{“caption”:“Groupe artistique”,“enabled”:true,“visible”:true,“closable”:false,“description”:null,“styleName”:null,“key”:“1”,“componentError”:null,“id”:null,“iconAltText”:“”},{“caption”:“Personne”,“enabled”:true,“visible”:true,“closable”:false,“description”:null,“styleName”:null,“key”:“2”,“componentError”:null,“id”:null,“iconAltText”:“”},{“caption”:“Peintre”,“enabled”:true,“visible”:true,“closable”:false,“description”:null,“styleName”:null,“key”:“3”,“componentError”:null,“id”:null,“iconAltText”:“”},{“caption”:“Musée”,“enabled”:true,“visible”:true,“closable”:false,“description”:null,“styleName”:null,“key”:“4”,“componentError”:null,“id”:null,“iconAltText”:“”}]
,“selected”:“1”,“height”:“100.0%”,“width”:“100.0%”,“immediate”:true},“37”:{“childData”:{“38”:{“alignmentBitmask”:5,“expandRatio”:0}},“height”:“100.0%”,“width”:“100.0%”},“38”:{“firstChild”:“39”,“secondChild”:“55”,“splitterState”:{“position”:40,“positionUnit”:“%”,“minPositionUnit”:“%”,“maxPosition”:100,“maxPositionUnit”:“%”},“height”:“100.0%”,“width”:“100.0%”,“description”:null},“39”:{“childData”:{“40”:{“alignmentBitmask”:5,“expandRatio”:1},“47”:{“alignmentBitmask”:5,“expandRatio”:0}},“height”:“100.0%”,“width”:“100.0%”,“description”:null},“40”:{“height”:“100.0%”,“width”:“100.0%”,“immediate”:true,“description”:null,“registeredEventListeners”:[“itemClick”]
},“41”:{“inputPrompt”:“”,“text”:“”,“immediate”:true,“description”:null},“42”:{“width”:“100.0%”,“immediate”:true,“description”:null,“styles”:[“datefilterpopup”]
},“43”:{“direction”:10,“width”:“100.0%”,“description”:null},“44”:{“width”:“100.0%”,“immediate”:true,“description”:null,“styles”:[“datefilterpopup”]
},“45”:{“direction”:10,“width”:“100.0%”,“description”:null},“46”:{“inputPrompt”:“”,“text”:“”,“immediate”:true,“description”:null},“47”:{“childData”:{“48”:{“alignmentBitmask”:5,“expandRatio”:0},“49”:{“alignmentBitmask”:5,“expandRatio”:0},“50”:{“alignmentBitmask”:5,“expandRatio”:0},“51”:{“alignmentBitmask”:5,“expandRatio”:0},“52”:{“alignmentBitmask”:5,“expandRatio”:0},“53”:{“alignmentBitmask”:5,“expandRatio”:0},“54”:{“alignmentBitmask”:5,“expandRatio”:0}},“description”:null},“48”:{“description”:null,“caption”:“Ajout”},“49”:{“description”:null,“caption”:“Copie”,“enabled”:false},“50”:{“description”:null,“caption”:“Suppresssion”,“enabled”:false},“51”:{“description”:null,“caption”:“Edition”,“enabled”:false},“52”:{“description”:null,“caption”:“Détail”,“enabled”:false},“53”:{“description”:null,“caption”:“Excel”},“54”:{“description”:null,“caption”:“Déconnexion”},“55”:{“childData”:{“56”:{“alignmentBitmask”:48,“expandRatio”:1},“70”:{“alignmentBitmask”:5,“expandRatio”:0.0010000000474974513}},“height”:“100.0%”,“width”:“100.0%”,“description”:null},“56”:{“firstChild”:“57”,“secondChild”:“69”,“splitterState”:{“position”:90,“positionUnit”:“%”,“minPositionUnit”:“%”,“maxPosition”:100,“maxPositionUnit”:“%”},“height”:“100.0%”,“width”:“100.0%”,“description”:null},“57”:{“tabIndex”:-1,“width”:“100.0%”,“description”:null},“58”:{“childData”:{“59”:{“alignmentBitmask”:5,“expandRatio”:0.9990000128746033}},“marginsBitmask”:15,“width”:“100.0%”,“description”:null},“59”:{“spacing”:true,“childData”:{“60”:{“alignmentBitmask”:5,“expandRatio”:0},“61”:{“alignmentBitmask”:5,“expandRatio”:0},“62”:{“alignmentBitmask”:5,“expandRatio”:0},“63”:{“alignmentBitmask”:5,“expandRatio”:0},“64”:{“alignmentBitmask”:5,“expandRatio”:0},“65”:{“alignmentBitmask”:5,“expandRatio”:0},“68”:{“alignmentBitmask”:5,“expandRatio”:0}},“marginsBitmask”:5,“width”:“100.0%”,“description”:null,“caption”:“

Groupe artistique

”,“captionAsHtml”:true},“60”:{“maxLength”:40,“inputPrompt”:“”,“text”:“”,“hideErrors”:true,“required”:true,“width”:“40.0em”,“immediate”:true,“description”:null,“caption”:“nom”,“enabled”:false},“61”:{“hideErrors”:true,“required”:true,“immediate”:true,“description”:null,“caption”:“date début”,“id”:“help_1”,“enabled”:false},“62”:{“immediate”:true,“description”:null,“caption”:“date finale”,“id”:“help_0”,“enabled”:false},“63”:{“maxLength”:5,“inputPrompt”:“”,“text”:“0”,“width”:“5.0em”,“readOnly”:true,“immediate”:true,“description”:null,“caption”:“durée”},“64”:{“immediate”:true,“description”:null,“caption”:“domaine artistique”,“enabled”:false},“65”:{“childData”:{},“description”:null,“enabled”:false},“68”:{“text”:" "Basil" © Jacky VALERE 2015-2016",“width”:“100.0%”},“69”:{“height”:“100.0%”,“width”:“100.0%”,“readOnly”:true,“description”:null,“enabled”:false},“70”:{“mode”:“RIGHT”,“tabPosition”:“MIDDLE”,“flowInContent”:true,“autoCollapseSlider”:true,“height”:“100.0%”,“width”:“100.0%”,“immediate”:true,“description”:null,“caption”:“Image”},“71”:{“childData”:{“72”:{“alignmentBitmask”:20,“expandRatio”:1}},“height”:“100.0%”,“width”:“900.0px”,“description”:null,“registeredEventListeners”:[“lClick”]
},“72”:{“height”:“100.0%”,“width”:“100.0%”,“description”:null,“resources”:{“source”:{“uRL”:“app://APP/connector/0/72/source/picture”}}}}, “types”:{“0”:“0”,“2”:“7”,“35”:“46”,“36”:“41”,“37”:“40”,“38”:“43”,“39”:“8”,“40”:“33”,“41”:“1”,“42”:“34”,“43”:“42”,“44”:“34”,“45”:“42”,“46”:“1”,“47”:“5”,“48”:“11”,“49”:“11”,“50”:“11”,“51”:“11”,“52”:“11”,“53”:“11”,“54”:“11”,“55”:“44”,“56”:“48”,“57”:“35”,“58”:“45”,“59”:“29”,“60”:“1”,“61”:“37”,“62”:“37”,“63”:“39”,“64”:“38”,“65”:“5”,“68”:“9”,“69”:“36”,“70”:“4”,“71”:“8”,“72”:“47”}, “hierarchy”:{“0”:[“1”,“7”]
,“2”:[“35”]
,“35”:[“36”]
,“36”:[“37”]
,“37”:[“38”]
,“38”:[“39”,“55”]
,“39”:[“40”,“47”]
,“40”:[“41”,“42”,“44”,“46”]
,“42”:[“43”]
,“44”:[“45”]
,“47”:[“48”,“49”,“50”,“51”,“52”,“53”,“54”]
,“55”:[“56”,“70”]
,“56”:[“57”,“69”]
,“57”:[“58”]
,“58”:[“59”]
,“59”:[“60”,“61”,“62”,“63”,“64”,“65”,“68”]
,“70”:[“71”]
,“71”:[“72”]
}, “rpc” : , “meta” : {}, “resources” : {}, “typeMappings” : { “com.vaadin.ui.CustomTable” : 49 , “fr.jacky.valere.basil.ui.panels.EntityFormNorthLayout” : 45 , “fr.jacky.valere.basil.ui.panels.EntityFormPanel” : 35 , “com.vaadin.ui.AbstractEmbedded” : 50 , “fr.jacky.valere.basil.ui.panels.EntityFormSplitPanel” : 44 , “com.vaadin.ui.VerticalSplitPanel” : 48 , “com.vaadin.ui.DateField” : 37 , “fr.jacky.valere.basil.runtime.entity.panels.DynamicEntityPanelTab” : 51 , “org.vaadin.ui.NumberField” : 39 , “fr.jacky.valere.basil.ui.panels.EntityMasterTablePanel” : 43 , “fr.jacky.valere.basil.runtime.entity.panels.DynamicMasterEntityPanelTab” : 40 , “com.vaadin.ui.CustomField” : 52 , “com.vaadin.ui.HorizontalSplitPanel” : 53 , “org.tepi.filtertable.datefilter.DateFilterPopup” : 34 , “org.vaadin.openesignforms.ckeditor.CKEditorTextField” : 36 , “org.tepi.filtertable.FilterTable” : 54 , “fr.jacky.valere.basil.ui.components.basic.FilterTableHolder” : 33 , “fr.jacky.valere.basil.ui.components.runtime.DynamicEnumComboBox” : 38 , “com.vaadin.ui.AbstractSplitPanel” : 55 , “org.vaadin.hene.popupbutton.PopupButton” : 42 , “com.vaadin.ui.TabSheet” : 41 , “fr.jacky.valere.basil.approot.ProjectDynamicEntitiesLayout” : 46 , “com.vaadin.ui.Image” : 47 , “fr.jacky.valere.basil.ui.panels.EntityTablePanel” : 56 }, “typeInheritanceMap” : { “12” : 16 , “4” : 18 , “49” : 32 , “13” : 16 , “45” : 5 , “9” : 16 , “26” : 18 , “15” : 18 , “16” : 22 , “35” : 26 , “29” : 20 , “8” : 20 , “50” : 16 , “5” : 20 , “18” : 16 , “44” : 5 , “48” : 55 , “37” : 12 , “51” : 8 , “28” : 32 , “39” : 1 , “32” : 12 , “43” : 56 , “19” : 15 , “40” : 51 , “52” : 12 , “53” : 55 , “20” : 21 , “21” : 25 , “34” : 52 , “36” : 12 , “54” : 49 , “33” : 54 , “38” : 28 , “11” : 13 , “55” : 25 , “42” : 11 , “23” : 21 , “41” : 25 , “1” : 24 , “7” : 23 , “46” : 8 , “24” : 12 , “47” : 50 , “0” : 19 , “56” : 53 , “25” : 16 }, “styleDependencies”: [“published:///numberfield.css”]
, “timings”:[15185, 13585]
}

Hi!

Thanks for reporting this. I just came back from vacation and haven’t had a time to take a look yet, but 7.6 had quite big changes so there are quite a few add-ons that aren’t compatible with it out of the box. I’ll try to find a moment to investigate this further.

This is not a good news :frowning:
The number field is an important element, i think. Why not a basic component of Vaadin?


Hi Anna

Excelent notice.

I will wait for news about

Have a good day

I tried the 7.6.1, but I have got error message when i use the NumberField.
“Communication Problem: Invalid JSON response from the server…” and long long message on the top of the window.
The NumberField is very important for me. (I paid fee to create the 7.x version)
I hope it will be compatible with 7.6.

…so return to 7.5.10 :frowning:

I’ll have to upgrade parts of the server-client communication to use more Vaadin 7 way of things instead of the legacy communication it’s currently using, I’ll keep you posted. Current implementation can’t handle Double.POSITIVE_INFINITY and Double.NEGATIVE_INFINITY (which are used as defaults) with Vaadin 7.6.

Great! :slight_smile:

I’m afraid my quick conversion caused a bad enough regression that I can’t publish a new version before I can get to the bottom of that (probably something to do with slightly different communication order), and I’m pretty swamped with work so it might take a while. Sorry. As a workaround, setting your own values to override those Double.POSITIVE_INFINITY and Double.NEGATIVE_INFINITY values should do the trick in the meantime. I’ll try to find more time to investigate this further at the first opportunity.

Hello Anna!
Where can I change these values for the workaround?
Greetings, Thomas

setMinValue(double) and setMaxValue(double)

Many thanks.

Hi

Easy workaround to put your project with Vaadin 7.6.x by overriding class NumberField

public class MyNumberField extends NumberField
{

public MyNumberField()
{
    super();
}

public MyNumberField(String caption)
{
    super(caption);
}

@Override
public double getMinValue()
{
    if (super.getMinValue() == Double.NEGATIVE_INFINITY)
    {
        return Double.MIN_NORMAL;
    }

    return super.getMinValue();
}

@Override
public double getMaxValue()
{
    if (super.getMaxValue() == Double.POSITIVE_INFINITY)
    {
        return Double.MAX_VALUE;
    }

    return super.getMaxValue();
}

}


THANK You! It is works fine!

Dear Anna!

Is it possible that you to fix the Shift + letter error any time soon?

I’m afraid I’m still swamped with work (well, currently sick at home, but that just means more work for next week). The source code is public, though, if someone else feels like giving it a shot in the meantime. This addon is first on my list for things to work on when I have actual free time, but it’s been a busy year and I’m not sure when things will ease off again so I can’t make any promises.

Dear Anna!
Thank you, I could fix it.

Glad to hear it :slight_smile: Would you like to post your solution here in case other people have the same problem?

I would like to test it a few days. Aftre that I will share it.

So, It works fine in Safari, Chrome, Opera, IE, Edge, Vivaldi but in FireFox disable all function key like Backspace, Delete, arrows…
Any idea?

Hard to say since I don’t know what you are doing exactly… are you modifying the KeyPressHandler or KeyDownHandler or both?