Hi Tobias,

Actually I've found a problem - I revert my statement!

Consider: new Label("id", () -> dateFormatter.format(LocalDate.now))

In Java this is resolved as Label(String, IModel) because Java lambdas are
not serializable and thus it cannot resolve to Label(String, Serializable)
constructor
In Scala the lambda is serializable and and the compiler uses Label(String,
Serializable).
Rendering this Label leads to: "((), 24/05/2016)". i.e. the lambda's
toString() is used.


But this is not so important.
The important thing is when we will release 8.0.0-M1 ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sun, May 22, 2016 at 4:24 PM, Tobias Soloschenko <
[email protected]> wrote:

> Hi Martin,
>
> good to here, but why do you expected any issues in this case?
>
> kind regards
>
> Tobias
>
> Am 22.05.16 um 15:04 schrieb Martin Grigorov:
>
> Just updated one of my applications to Wicket 8.0.0-SNAPSHOT (and Scala
>> 2.12.0-M4)
>> The IModel works as a Scala lambda without any problems!
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Thu, Apr 28, 2016 at 6:59 PM, Tobias Soloschenko <
>> [email protected]> wrote:
>>
>> Oh sorry  -M1
>>>
>>> kind regards
>>>
>>> Tobias
>>>
>>> Am 28.04.2016 um 16:52 schrieb Martin Grigorov <[email protected]>:
>>>>
>>>> On Thu, Apr 28, 2016 at 4:50 PM, Tobias Soloschenko <
>>>> [email protected]> wrote:
>>>>
>>>> @Andrea - Jep. I think it was that discussion about some model changes
>>>>> with lambda.
>>>>>
>>>>> Anyway - Martin you are right JEE dev is slow - so +1 for RC
>>>>>
>>>> Milestone! Not Release Candidate!
>>>>
>>>> RC means we won't be able to make more API breaks.
>>>> Milestone is just a stable version that users could play with.
>>>>
>>>>
>>>> kind regards
>>>>>
>>>>> Tobias
>>>>>
>>>>> Am 28.04.2016 um 14:52 schrieb Andrea Del Bene <[email protected]>:
>>>>>>
>>>>>> Are you refering to Matthias work?
>>>>>>
>>>>>> Andrea.
>>>>>>
>>>>>> On 27/04/2016 07:32, Tobias Soloschenko wrote:
>>>>>>> Hi Martin,
>>>>>>>
>>>>>>> I remember a discussion about further lambda improvements some days
>>>>>>>
>>>>>> ago. Shouldn't we wait until these suggestions are implemented?
>>>>>
>>>>>> Also what about Servlet 4.x - if we release now we can't switch to
>>>>>>>
>>>>>> PushBuilder API - can we?
>>>>>
>>>>>> Only some thoughts - WDYT
>>>>>>>
>>>>>>> kind regards
>>>>>>>
>>>>>>> Tobias
>>>>>>>
>>>>>>> Am 27.04.2016 um 00:07 schrieb Martin Grigorov <[email protected]
>>>>>>>>
>>>>>>> :
>>>>
>>>>> Hi,
>>>>>>>>
>>>>>>>> I think what we have so far in master branch is enough for releasing
>>>>>>>>
>>>>>>> a
>>>
>>>> milestone.
>>>>>>>> Its purpose would be to collect some feedback on the lambdas and
>>>>>>>>
>>>>>>> other
>>>
>>>> small improvements.
>>>>>>>> What do you think ?
>>>>>>>>
>>>>>>>>
>>>>>>>> Martin Grigorov
>>>>>>>> Wicket Training and Consulting
>>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>>
>>>>>>>
>

Reply via email to