[ 
https://issues.apache.org/jira/browse/WICKET-6801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved WICKET-6801.
-----------------------------------------------
    Resolution: Later

I've tried to implement smart returns for IModel's #map(), #flatMap() etc. but 
I don't see how this could be done without a lot of code duplication: 

[https://github.com/apache/wicket/compare/master...martin-g:feature/WICKET-6801-IModel-monad-methods-should-return-IComponentAssignedModel-when-needed?expand=1]

 

Closing as "Later" since a workaround has been provided for your specific case 
in the users@ mailing list. Maybe someone will get inspired by my attempt and 
provide a working PR.

> Model lambdas do not return an IModel implementing IComponentAssignedModel
> --------------------------------------------------------------------------
>
>                 Key: WICKET-6801
>                 URL: https://issues.apache.org/jira/browse/WICKET-6801
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Alberto Brosich
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>
> Model lambdas should return an IModel implementing IComponentAssignedModel 
> when base model implements it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to