Re: getInputAsArray behavior

2018-02-06 Thread Maxim Solodovnik
Works as expected! Thanks for the quick fix :) On Tue, Feb 6, 2018 at 4:53 PM, Sven Meier wrote: > Hi Maxim, > > you're right, it was related to multipart requests: > > Empty inputs must be appended as "" to the FormData, otherwise "null" will > be sent to the server. > > Many thanks > Sven > >

Re: getInputAsArray behavior

2018-02-06 Thread Sven Meier
Hi Maxim, you're right, it was related to multipart requests: Empty inputs must be appended as "" to the FormData, otherwise "null" will be sent to the server. Many thanks Sven Am 06.02.2018 um 03:55 schrieb Maxim Solodovnik: Hello Sven, sorry for delay Here is the quick-start: https://gi

Re: getInputAsArray behavior

2018-02-05 Thread Maxim Solodovnik
Hello Sven, sorry for delay Here is the quick-start: https://github.com/solomax/form-null-value.git To reproduce the issue 1) mvn jetty:run 2) go to http://localhost:8080 3) Click "Reset" Everything will work as expected if 1) wicket version is set to M8 2) any value is selected in drop down befo

Re: getInputAsArray behavior

2018-02-05 Thread Maxim Solodovnik
Just re-read your question The form IS multi-part (has file upload) Will try to prepare quick start this evening On Mon, Feb 5, 2018 at 1:58 PM, Maxim Solodovnik wrote: > Actually this issue is reproducible in our project with select2 field > MultiSelect from here: https://github.com/wicketstuf

Re: getInputAsArray behavior

2018-02-04 Thread Maxim Solodovnik
Actually this issue is reproducible in our project with select2 field MultiSelect from here: https://github.com/wicketstuff/core/tree/master/select2-parent Will try to test using select2 example projects On Mon, Feb 5, 2018 at 1:56 PM, Sven Meier wrote: > Hi Maxim, > > are you using multipart r

Re: getInputAsArray behavior

2018-02-04 Thread Sven Meier
Hi Maxim, are you using multipart requests? If not, there shouldn't be any change in serializing the input fields. I've tried Ajax and non-Ajax requests but cannot reproduce the problem. Are you entering "[null] into a field, without quotes but *with* square brackets? Sven Am 05.02.2018 u

Re: getInputAsArray behavior

2018-02-04 Thread Maxim Solodovnik
Hello Sven, The issue is caused by this [1] commit the form is now being serialized differently Previously FormComponent.getInputAsArray method got (Object)null as input Right now it is [null] as List [1] https://github.com/apache/wicket/commit/f642f4ad4266319731b200e517eadf53fef5a56b On M

Re: getInputAsArray behavior

2018-02-04 Thread Sven Meier
Hi, Investigation shows "[null]" string is being converted to ["null"] (new String[]{"null"}) by FormComponent.getInputAsArray method "null" does not seem right. Can you pin down this problem to a recent commit in Wicket? I don't remember any change in FormComponent related to this. Regards

getInputAsArray behavior

2018-02-04 Thread Maxim Solodovnik
Hello All, 'master' branch of our main application is based on 8.0.0-SNAPSHOT Tonight we have error report: our latest build fails without changes in our code Investigation shows "[null]" string is being converted to ["null"] (new String[]{"null"}) by FormComponent.getInputAsArray method I see n