https://issues.apache.org/jira/browse/WICKET-6379
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, May 24, 2017 at 10:45 PM, Sven Meier wrote:
> Hi,
>
> WDYT ? Do we need to implement #detach() in #map(), #filter(), etc ?
>>
>
> yes, I
Hi,
WDYT ? Do we need to implement #detach() in #map(), #filter(), etc ?
yes, I think this is a good idea: the returned model holds a reference
to the given model, so it should detach it.
Regards
Sven
On 24.05.2017 21:36, Martin Grigorov wrote:
On Tue, May 23, 2017 at 11:17 PM, Martin
On Tue, May 23, 2017 at 11:17 PM, Martin Grigorov
wrote:
> Hi,
>
> On Tue, May 23, 2017 at 5:40 PM, Ihmehlmenn wrote:
>
>> Hello everyone,
>>
>> while trying out some of the very cool new features in Wicket 8,
>> specifically replacing PropertyModels
tants.MY_STATIC_VALUE;
>
Correct!
The static constant won't be serialized but the closure will be.
So this version should be close memory-wise to using AbstractReadOnlyModel
for this use case but anonymous inner classes have a reference to the outer
instance and afaik lambdas don't have it.
42946.n4.nabble.com/Questions-regarding-Wicket-8-and-lambda-expressions-for-models-tp4677918.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
F