I would add a chapter in the user guide.

kind regards

Tobias

> Am 16.03.2016 um 09:33 schrieb Sebastien <[email protected]>:
> 
> Looks very nice (and complete)! Thanks Sven!
> Good recap to be candidate for a how-to-wicket-8 document in confluence?
> 
> 
> On Tue, Mar 15, 2016 at 11:55 AM, Martin Grigorov <[email protected]>
> wrote:
> 
>> Great!
>> Thanks, Sven!
>> 
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>> 
>>> On Tue, Mar 15, 2016 at 11:52 AM, Sven Meier <[email protected]> wrote:
>>> 
>>> Hi again,
>>> 
>>> I added a factory for a read-only variant too.
>>> 
>>> To recap all options:
>>> 
>>>    IModel<String> personNameModel =
>>> 
>>> // getter lambda
>>>          () -> person.getName();
>>> // getter instance function reference
>>>          person::getName;
>>> // getter and setter lambda
>>>          LambdaModel.of(() -> person.getName(), (name) ->
>>> person.setName(name));
>>> // getter and setter instance function references
>>>          LambdaModel.of(person::getName, person::setName);
>>> // target model with getter class function reference
>>>          LambdaModel.of(personModel, Person::getName);
>>> // target model with getter and setter class function references
>>>          LambdaModel.of(personModel, Person::getName, Person::setName);
>>> 
>>> Regards
>>> Sven
>>> 
>> 

Reply via email to